-
Notifications
You must be signed in to change notification settings - Fork 9
/
stdlib.h
44 lines (35 loc) · 1.33 KB
/
stdlib.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
38
39
40
41
42
43
44
// vim: shiftwidth=4 softtabstop=4 tabstop=4 expandtab
#ifndef _STDLIB_H_
#define _STDLIB_H_
#include "acsi.h"
#include "globdefs.h"
void * memcpy ( void * destination, const void * source, int num );
void * memset ( void * ptr, int value, int num );
int strlen ( const char * str );
char * strcpy ( char * destination, const char * source);
char * strcat( char * destination, const char * source);
char * strncpy ( char * destination, const char * source, int num );
int strncmp ( const char * str1, const char * str2, int num );
int strcmp ( const char * str1, const char * str2);
void sleep(int seconds);
void sleepMs(int ms);
DWORD getTicks_fromSupervisor(void);
DWORD getTicks(void);
BYTE *storeByte(BYTE *bfr, BYTE value);
BYTE *storeWord(BYTE *bfr, WORD value);
BYTE *storeDword(BYTE *bfr, DWORD value);
WORD getWord(BYTE *bfr);
DWORD getDword(BYTE *bfr);
void showHexByte(int val);
void showHexWord(WORD val);
void showHexDword(DWORD val);
WORD getWordByByteOffset (void *base, int ofs);
DWORD getDwordByByteOffset(void *base, int ofs);
void *getVoidpByByteOffset(void *base, int ofs);
void setWordByByteOffset (void *base, int ofs, WORD val);
void setDwordByByteOffset(void *base, int ofs, DWORD val);
#ifdef DEBUG_STRING
void logStr(char *str);
void logBfr(BYTE *bfr, int len);
#endif
#endif