Last change
on this file was 22028, checked in by dmik, 13 years ago |
pe: A better fix for adding .EXE than r22016.
It will only add .EXE if there is no (any) extention already specified,
regardless of whether the path is present or not. This matches the
behavior of CMD.EXE on both Windows and OS/2.
|
File size:
730 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 | const char *str_find_last_char(const char *s, int c);
|
---|
23 | int vsnprintf (char *buf, int n, const char *fmt, va_list args);
|
---|
24 | int snprintf(char *buf, int n, const char *fmt, ...);
|
---|
25 |
|
---|
26 | #endif // HELPERS_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.