File: bstring.c

package info (click to toggle)
t1lib 1.0-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,544 kB
  • ctags: 2,612
  • sloc: ansic: 22,516; sh: 8,901; makefile: 733
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;
}