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

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
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);
22int vsnprintf (char *buf, int n, const char *fmt, va_list args);
23int snprintf(char *buf, int n, const char *fmt, ...);
24
25#endif // HELPERS_H
Note: See TracBrowser for help on using the repository browser.