ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

strset.c
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:   See COPYING in the top level directory
00003  * PROJECT:     ReactOS system libraries
00004  * FILE:        lib/crt/strset.c
00005  * PURPOSE:     Implementation of _strnset and _strset
00006  * PROGRAMER:   Unknown
00007  * UPDATE HISTORY:
00008  *              25/11/05: Added license header
00009  */
00010 
00011 #if defined(__GNUC__) && !defined(__clang__)
00012 #define __int64 long long
00013 #elif defined(_MSC_VER)
00014 #pragma warning(disable: 4164)
00015 #pragma function(_strset)
00016 #endif
00017 
00018 #ifdef _WIN64
00019 typedef unsigned __int64 size_t;
00020 #else
00021 typedef unsigned int size_t;
00022 #endif
00023 
00024 /*
00025  * @implemented
00026  */
00027 char* _strnset(char* szToFill, int szFill, size_t sizeMaxFill)
00028 {
00029     char *t = szToFill;
00030     int i = 0;
00031     while (*szToFill != 0 && i < (int) sizeMaxFill)
00032     {
00033         *szToFill = szFill;
00034         szToFill++;
00035         i++;
00036 
00037     }
00038     return t;
00039 }
00040 
00041 /*
00042  * @implemented
00043  */
00044 char* _strset(char* szToFill, int szFill)
00045 {
00046     char *t = szToFill;
00047     while (*szToFill != 0)
00048     {
00049         *szToFill = szFill;
00050         szToFill++;
00051 
00052     }
00053     return t;
00054 }
00055 

Generated on Sat May 26 2012 04:35:36 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.