|
SDDS ToolKit Programs and Libraries for C and Python
|
Contains string str_inn function.
Definition in file str_inn.c.
#include "mdb.h"#include <ctype.h>Go to the source code of this file.
Functions | |
| char * | str_inn (char *s, char *t, long n) |
Searches for the first occurrence of substring t within the first n characters of string s. | |
| char * str_inn | ( | char * | s, |
| char * | t, | ||
| long | n ) |
Searches for the first occurrence of substring t within the first n characters of string s.
This function scans the string s to find the substring t. It only considers the first n characters of s. If t is found within these bounds, a pointer to the beginning of t in s is returned.
| s | The string to be searched. |
| t | The substring to locate within s. |
| n | The maximum number of characters in s to be searched. |
t in s, or NULL if t is not found within the first n characters. Definition at line 30 of file str_inn.c.