File: bstring.c

package info (click to toggle)
grace6 5.99.1%2Bdev4-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 10,492 kB
  • ctags: 13,269
  • sloc: ansic: 103,384; sh: 5,021; yacc: 617; makefile: 574; lex: 253; fortran: 56
file content (9 lines) | stat: -rw-r--r-- 157 bytes parent folder | download | duplicates (32)
1
2
3
4
5
6
7
8
9
/*
 * A simple memset() in case your ANSI C does not provide it
 */

memset(void *s, int c, int length)
{  char *p = s;
  
   while (length--) *(p++) = c;
}