Last change
on this file since 21942 was 21942, checked in by dmik, 14 years ago |
Use custom startup code for PE loader.
This allows to grab the lowest memory address before any DLL
(including the C library) kicks in and reserves memory for its own
purposes. This fixes #54.
|
File size:
676 bytes
|
Line | |
---|
1 | /** @file
|
---|
2 | *
|
---|
3 | * Helper functions for the PE loader.
|
---|
4 | *
|
---|
5 | * These are needed since we don't link to LIBC.
|
---|
6 | *
|
---|
7 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
8 | */
|
---|
9 |
|
---|
10 | #ifndef HELPERS_H
|
---|
11 | #define HELPERS_H
|
---|
12 |
|
---|
13 | #include <stdarg.h>
|
---|
14 |
|
---|
15 | void *memcpy(void *p1, const void *p2, int n);
|
---|
16 | char *strcpy(char *s1, const char *s2);
|
---|
17 | int strlen(const char *s);
|
---|
18 | char *strcat(char *s1, const char *s2);
|
---|
19 | int str_starts_with(const char *s1, const char *s2);
|
---|
20 | const char *str_skip_char(const char *s, int c);
|
---|
21 | const char *str_find_char(const char *s, int c);
|
---|
22 | int vsnprintf (char *buf, int n, const char *fmt, va_list args);
|
---|
23 | int snprintf(char *buf, int n, const char *fmt, ...);
|
---|
24 |
|
---|
25 | #endif // HELPERS_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.