Category : C Source Code
Archive   : HEAPMAN.ZIP
Filename : ZEROSTRU.C

 
Output of file : ZEROSTRU.C contained in archive : HEAPMAN.ZIP
ZeroStruct(a, b)
Ptr a; /* ptr to structure */
int b; /* iteration index */

/*
Zero Structure does just that with the two parameters passed to it. The
first, is the ptr to the structure and the second is the loop index.

calling params:
ptr 2 structure
iteration index

return params:
none

Author: Byro
Creation: 01/09/91
Modified: 01/16/91
Revision:

*/

{
int i;

for (i = 0; i < b; i++)
((unsigned char *) a) [i] = 0;
}



  3 Responses to “Category : C Source Code
Archive   : HEAPMAN.ZIP
Filename : ZEROSTRU.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. 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/