source: trunk/src/peldr/helpers.h@ 22028

Last change on this file since 22028 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
15void *memcpy(void *p1, const void *p2, int n);
16char *strcpy(char *s1, const char *s2);
17int strlen(const char *s);
18char *strcat(char *s1, const char *s2);
19int str_starts_with(const char *s1, const char *s2);
20const char *str_skip_char(const char *s, int c);
21const char *str_find_char(const char *s, int c);
22const char *str_find_last_char(const char *s, int c);
23int vsnprintf (char *buf, int n, const char *fmt, va_list args);
24int snprintf(char *buf, int n, const char *fmt, ...);
25
26#endif // HELPERS_H
Note: See TracBrowser for help on using the repository browser.