/*
|
/*
|
* lib.h -- the library
|
* lib.h -- the library
|
*/
|
*/
|
|
|
|
|
#ifndef _LIB_H_
|
#ifndef _LIB_H_
|
#define _LIB_H_
|
#define _LIB_H_
|
|
|
|
|
void debugBreak(void);
|
void debugBreak(void);
|
|
|
int strlen(const char *s);
|
int strlen(const char *s);
|
int strcmp(const char *s, const char *t);
|
int strcmp(const char *s, const char *t);
|
char *strcpy(char *s, const char *t);
|
char *strcpy(char *s, const char *t);
|
char *strcat(char *s, const char *t);
|
char *strcat(char *s, const char *t);
|
char *strchr(const char *s, char c);
|
char *strchr(const char *s, char c);
|
char *strtok(char *s, const char *t);
|
char *strtok(char *s, const char *t);
|
|
|
unsigned long strtoul(const char *s, char **endp, int base);
|
unsigned long strtoul(const char *s, char **endp, int base);
|
|
|
void qsort(void *base, int n, int size,
|
void qsort(void *base, int n, int size,
|
int (*cmp)(const void *, const void *));
|
int (*cmp)(const void *, const void *));
|
|
|
char getchar(void);
|
char getchar(void);
|
void putchar(char c);
|
void putchar(char c);
|
|
|
int printf(const char *fmt, ...);
|
int printf(const char *fmt, ...);
|
int sprintf(char *s, const char *fmt, ...);
|
int sprintf(char *s, const char *fmt, ...);
|
|
|
|
|
#endif /* _LIB_H_ */
|
#endif /* _LIB_H_ */
|
|
|