Commit 72696db2 by malcolm

Added memset utility in string.h

parent 515d0d6d
Showing with 14 additions and 0 deletions
#include "string.h"
void *memset(void *s, int c, size_t n){
unsigned char* p=s;
while(n--)
*p++=(unsigned char) c;
return s;
}
#ifndef _STRING_INC
#define _STRING_ING
#include<stddef.h>
void* memset(void *s, int c, size_t n);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment