diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/crt32/mbstring/strinc.c | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/crt32/mbstring/strinc.c')
-rw-r--r-- | private/crt32/mbstring/strinc.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/private/crt32/mbstring/strinc.c b/private/crt32/mbstring/strinc.c new file mode 100644 index 000000000..01f17efd4 --- /dev/null +++ b/private/crt32/mbstring/strinc.c @@ -0,0 +1,44 @@ +/*** +*strinc.c - Move SBCS string pointer ahead one charcter (MBCS mapping). +* +* Copyright (c) 1991-1993, Microsoft Corporation. All rights reserved. +* +*Purpose: +* Move SBCS string pointer ahead one character (MBCS mapping). +* +*Revision History: +* 11-19-92 KRS Ported from 16-bit sources. +* 06-03-93 KRS Remove NULL pointer check. +* 08-03-93 KRS Fix prototype. +* +*******************************************************************************/ + +#ifdef _MBCS +#include <cruntime.h> +#include <mbdata.h> +#include <mbstring.h> +#include <mbctype.h> +#include <stddef.h> + +/*** +*_mbsinc - Move SBCS string pointer ahead one charcter (MBCS mapping). +* +*Purpose: +* Move the supplied string pointer ahead by one character. +* +*Entry: +* const unsigned char *current = current char pointer +* +*Exit: +* Returns pointer after moving it. +* +*Exceptions: +* +*******************************************************************************/ + +unsigned char * _CRTAPI1 _strinc(current) +const unsigned char *current; +{ + return (unsigned char *)(++current); +} +#endif /* _MBCS */ |