RAD Studio
ContentsIndex
PreviousUpNext
_strnextc,_mbsnextc,_wcsnextc

Header File 

tchar.h, mbstring.h 

Category 

Memory and String Manipulation Routines 

Prototype 

unsigned int _strnextc(const char *str); 

unsigned int _mbsnextc (const unsigned char *str); 

Description 

These routines should be accessed by using the portable _tcsnextc function. The functions inspect the current character in str. The pointer to str is not advanced. 

Return Value 

The functions return the integer value of the character pointed to by str. 

Example  

#include <tchar.h>
#include <stdio.h>
int main()
{
   unsigned int retval = 0;
   const unsigned char *string = "ABC";
   retval = _strnextc(string);
   printf("The starting character:%c", retval);
   retval = _strnextc(++string);
   printf("\nThe next character:%c", retval);
   return 0;
}
/***
The starting character:A
The next character:B
***/
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!