-
Notifications
You must be signed in to change notification settings - Fork 10
/
utils.h
21 lines (18 loc) · 588 Bytes
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _UTILS_H_
#define _UTILS_H_
#include "types.h"
void msleep(int s);
void sleep(int s);
int mseconds(void);
int seconds(void);
//
char* strcpy(char *dest, const char *src);
char* strncpy(char *dest, const char *src, size_t count);
int strncmp(const char *cs, const char *ct, size_t count);
char* strcat(char * dest, const char * src);
char* strstr(const char * s1,const char * s2);
size_t strlen(const char *s);
void* memcpy(void * to, const void *from, size_t n);
void* memset(void *s, int c, size_t count);
int memcmp(const void *cs, const void *ct, size_t count);
#endif