Next: astChrSplit - Extract words from a supplied string
Up: AST Memory Management and Utility Functions
Previous: astChrMatch - Case insensitive string comparison
astChrMatchN
-
Case insensitive string comparison of at most N characters
- Description:
- This function compares two null terminated strings for equality,
discounting differences in case and any trailing white space in either
string. No more than "n" characters are compared.
- Synopsis:
- int astChrMatchN( const char
str1, const char
str2, size_t n )
- Parameters:
-
str1
-
Pointer to the first string.
-
str2
-
Pointer to the second string.
-
n
-
Maximum number of characters to compare.
- Returned Value:
-
astChrMatchN()
-
Non-zero if the two strings match, otherwise zero.
- Notes:
- A value of zero is returned if this function is invoked with the
global error status set or if it should fail for any reason.
Next: astChrSplit - Extract words from a supplied string
Up: AST Memory Management and Utility Functions
Previous: astChrMatch - Case insensitive string comparison
AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 211
R.F. Warren-Smith & D.S. Berry
24th May 2011
E-mail:ussc@star.rl.ac.uk
Copyright (C) 2009 Science \& Technology Facilities Council