Changeset 553 for cmedia/trunk/Runtime


Ignore:
Timestamp:
Jul 27, 2011, 7:54:48 PM (14 years ago)
Author:
rudi
Message:

Adapt sourcecode to OpenWatcom

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmedia/trunk/Runtime/string.c

    r354 r553  
    1212#include <string.h>
    1313
    14 char *strncpy(char *dst, const char *src, int n)
     14char *strncpy(char *dst, const char *src, size_t n)
    1515{
    16    int i;
     16   size_t i;
    1717
    1818   for (i=0; i<n; i++)
     
    2323
    2424
    25 char __far *_fstrncpy(char __far *dst, const char __far *src, int n)
     25char __far *_fstrncpy(char __far *dst, const char __far *src, size_t n)
    2626{
    27    int i;
     27   size_t i;
    2828
    2929   for (i=0; i<n; i++)
     
    3333}
    3434
    35 int _fstrnicmp(const char __far *string1, const char __far *string2, int n)
     35int _fstrnicmp(const char __far *string1, const char __far *string2, size_t n)
    3636
    37    int i,a,b;
     37   size_t i;
     38   int a,b;
    3839
    3940   for (i=0; i<n; i++) {
Note: See TracChangeset for help on using the changeset viewer.