-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.h
37 lines (30 loc) · 860 Bytes
/
lib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
lib.h
Copyright (c) 2013-2021 Akihisa ONODA
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef __LIB_H__
#define __LIB_H__
typedef struct div_t {
unsigned int div;
unsigned int mod;
} div_t;
void *memset(void *, int , long);
void *memcpy(void *, const void *, long);
int memcmp(const void *, const void *, long);
int strlen(const char *);
char *strcpy(char *, const char *);
int strcmp(const char *, const char *);
int strncmp(const char *, const char *, int);
int putc(unsigned char);
int puts(char *);
unsigned char getc(void);
int gets(unsigned char *);
int putdval(long, int);
int putuval(unsigned long, int);
int putxval(unsigned long, int);
div_t div(unsigned int, unsigned int);
int snprintf(char *, int, char *, ...);
char *hex2dec(unsigned char);
#endif /* __LIB_H__ */