#include "config.h"
#include "len.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
Go to the source code of this file.
|
| int | _len (const char *s, char m) |
| |
| int | _ulen (const unsigned char *s, unsigned char m) |
| |
◆ _len()
| int _len |
( |
const char * |
s, |
|
|
char |
m |
|
) |
| |
Return number of characters in in a string.
- Parameters
-
| [in] | s | A pointer to the string. |
| [in] | m | Character (code) which marks the end of the string. |
- Returns
- The number of character before till the first occurrence of 'm' is reached ('m' excluded).
Definition at line 8 of file len.c.
◆ _ulen()
| int _ulen |
( |
const unsigned char * |
s, |
|
|
unsigned char |
m |
|
) |
| |
Unsigned version of _len.
Definition at line 19 of file len.c.