FireBirdLib - Topfield TMS PVR TAP Programming Library
ParseLine.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
FBLib_string.h
"
3
4
char
*
ParseLine
(
const
char
*zeile,
size_t
*n,
char
delim)
5
{
6
TRACEENTER
();
7
8
char
*p;
9
10
if
(!zeile || !*zeile)
11
{
12
*n = 0;
13
14
TRACEEXIT
();
15
return
NULL;
16
}
17
18
if
(*zeile == delim) zeile++;
19
20
if
((p = strchr(zeile, delim)))
21
{
22
*n = p - zeile;
23
24
TRACEEXIT
();
25
return
(
char
*) zeile;
26
}
27
else
28
{
29
*n = strlen(zeile);
30
31
TRACEEXIT
();
32
33
return
(
char
*) zeile;
34
}
35
36
TRACEEXIT
();
37
}
FBLib_string.h
ParseLine
char * ParseLine(const char *zeile, size_t *n, char delim)
Definition:
ParseLine.c:4
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
string
ParseLine.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3