libcfe
0.12.1
some useful C-functions
len.c
Go to the documentation of this file.
1
#include "config.h"
2
#include "
len.h
"
3
4
#include <stdlib.h>
5
#include <string.h>
6
#include <stdio.h>
7
8
int
_len
(
const
char
*s,
char
m)
9
{
10
int
i = -1;
11
char
c;
12
do
13
c = s[++i];
14
while
(c != m);
15
16
return
i;
17
}
18
19
int
_ulen
(
const
unsigned
char
*s,
unsigned
char
m)
20
{
21
int
i = -1;
22
unsigned
char
c;
23
do
24
c = s[++i];
25
while
(c != m);
26
27
return
i;
28
}
_len
int _len(const char *s, char m)
Definition:
len.c:8
len.h
_ulen
int _ulen(const unsigned char *s, unsigned char m)
Definition:
len.c:19
cfe
len.c
Generated on Sat Apr 18 2026 01:53:44 for libcfe by
1.8.14