File: bstring.c

package info (click to toggle)
grace 1%3A5.1.22-13
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 13,100 kB
  • sloc: ansic: 98,292; sh: 5,316; makefile: 569; fortran: 56; perl: 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;
}