Ignore:
Timestamp:
Apr 10, 2003, 12:28:07 PM (22 years ago)
Author:
sandervl
Message:

PF: MSVCRT update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/msvcrt/string.c

    r9633 r10005  
    2525#include "msvcrt/stdlib.h"
    2626#include "msvcrt/string.h"
    27 
     27#include <string.h>
    2828#include "wine/debug.h"
    2929
     
    5151 *              _strdup (MSVCRT.@)
    5252 */
    53 char* _strdup(const char* str)
     53char* MSVCRT__strdup(const char* str)
    5454{
    5555    char * ret = MSVCRT_malloc(strlen(str)+1);
     
    6161 *              _strnset (MSVCRT.@)
    6262 */
    63 char* _strnset(char* str, int value, unsigned int len)
     63char* MSVCRT__strnset(char* str, int value, unsigned int len)
    6464{
     65  dprintf(("MSVCRT: _strnset %s %d %d",str, value, len));
    6566  if (len > 0 && str)
    6667    while (*str && len--)
     
    7273 *              _strrev (MSVCRT.@)
    7374 */
    74 char* _strrev(char* str)
     75char* MSVCRT__strrev(char* str)
    7576{
    7677  char * p1;
    7778  char * p2;
     79
     80  dprintf(("MSVCRT: _strrev %s",str));
    7881
    7982  if (str && *str)
     
    9194 *              _strset (MSVCRT.@)
    9295 */
    93 char* _strset(char* str, int value)
     96char* MSVCRT__strset(char* str, int value)
    9497{
    9598  char *ptr = str;
     99
     100  dprintf(("MSVCRT: _strset %s %d",str, value));
     101
    96102  while (*ptr)
    97103    *ptr++ = value;
     
    103109 *              _swab (MSVCRT.@)
    104110 */
    105 void _swab(char* src, char* dst, int len)
     111void MSVCRT__swab(char* src, char* dst, int len)
    106112{
     113  dprintf(("MSVCRT: _swab %s %s %d",src, dst, len));
     114
    107115  if (len > 1)
    108116  {
     
    116124  }
    117125}
     126
     127int MSVCRT_strncmp (const char* a,const char* b,MSVCRT(size_t) c)
     128{
     129  dprintf(("MSVCRT: strncmp %s,%s (%d)",a,b,c));
     130  return strncmp(a,b,c);
     131}
     132
Note: See TracChangeset for help on using the changeset viewer.