| 1 | /* $Id: d16crt.h,v 1.1 2002-03-31 19:30:40 bird Exp $
|
|---|
| 2 | *
|
|---|
| 3 | * Moved all the crt replacements used by the 16-bit part into one file.
|
|---|
| 4 | *
|
|---|
| 5 | * Copyright (c) 1998-2002 knut st. osmundsen (bird@anduin.net)
|
|---|
| 6 | *
|
|---|
| 7 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 8 | *
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 | #ifndef _dev16crt_h_
|
|---|
| 13 | #define _dev16crt_h_
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 | /* File an output replacements */
|
|---|
| 17 | HFILE fopen(const char * pszFilename, const char * pszIgnored);
|
|---|
| 18 | int fread(void * pvBuffer, unsigned short cbBlock, unsigned short cBlock, HFILE hFile);
|
|---|
| 19 | int fseek(HFILE hfile, signed long off, int iOrg);
|
|---|
| 20 | unsigned long fsize(HFILE hFile);
|
|---|
| 21 | int feof(HFILE hFile);
|
|---|
| 22 | char * fgets(char * psz, int num, HFILE hFile);
|
|---|
| 23 |
|
|---|
| 24 | /* C-library replacements and additions. */
|
|---|
| 25 | void * kmemcpy(char *psz1, const char *psz2, int cch);
|
|---|
| 26 | char * kstrstr(const char *psz1, const char *psz2);
|
|---|
| 27 | int kstrcmp(const char *psz1, const char *psz2);
|
|---|
| 28 | int kstrncmp(const char *psz1, const char *psz2, int cch);
|
|---|
| 29 | int kstrnicmp(const char *psz1, const char *psz2, int cch);
|
|---|
| 30 | int kstrlen(const char *psz);
|
|---|
| 31 | char * kstrcpy(char * pszTarget, const char * pszSource);
|
|---|
| 32 | char * kstrncpy(char * pszTarget, const char * pszSource, int cch);
|
|---|
| 33 | char * kstrcat(char * pszTarget, const char * pszSource);
|
|---|
| 34 | char * kstrtok(char * pszTarget, const char * pszToken);
|
|---|
| 35 | int kargncpy(char *pszTarget, const char *pszArg, unsigned cchMaxlen);
|
|---|
| 36 |
|
|---|
| 37 | #endif
|
|---|