Category : C Source Code
Archive   : TC-DBF.ZIP
Filename : D_BLANK.C
Output of file : D_BLANK.C contained in archive : TC-DBF.ZIP
** file: d_blank.c
** purpose: routine to fill a record in memory with blanks.
** usage: d = (struct DBF *)malloc(sizeof(struct DBF));
** strcpy(d->filename,"filename.dbf");
** d_open(d);
** d_blank(d);
** d_addrec(d);
** d_close(d);
** free(d);
** notes: the above code fragment append a blank record to the end of the
** dbiii file.
** compile with "tcc -c d_blank". include this file in dbf.lib
** see dbf.h for structure of DBF
** author: Mark Sadler
** revised: 6/6/87
*/
#include
#include
#include "dbf.h"
int d_blank(struct DBF *d)
{
memset(d->record_ptr,'\x20',d->record_length);
return(0);
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/