libcfe  0.12.1
some useful C-functions
len.c File Reference
#include "config.h"
#include "len.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
Include dependency graph for len.c:

Go to the source code of this file.

Functions

int _len (const char *s, char m)
 
int _ulen (const unsigned char *s, unsigned char m)
 

Function Documentation

◆ _len()

int _len ( const char *  s,
char  m 
)

Return number of characters in in a string.

Parameters
[in]sA pointer to the string.
[in]mCharacter (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.

Here is the caller graph for this function:

◆ _ulen()

int _ulen ( const unsigned char *  s,
unsigned char  m 
)

Unsigned version of _len.

Definition at line 19 of file len.c.