FireBirdLib - Topfield TMS PVR TAP Programming Library
strcpyUC.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
libFireBird.h
"
3
4
byte
*
strcpyUC
(
byte
*dest,
const
byte
*src)
5
{
6
TRACEENTER
();
7
8
byte
*p;
9
int
CharTableBytes;
10
11
if
(!src || !dest)
12
{
13
TRACEEXIT
();
14
return
NULL;
15
}
16
17
p =
SkipCharTableBytes
(src);
18
CharTableBytes = p - src;
19
20
if
(CharTableBytes == 0)
21
strcpy(dest, src);
22
else
23
{
24
memcpy(dest, (
void
*) src, CharTableBytes);
25
strcpy(&dest[CharTableBytes], p);
26
}
27
28
TRACEEXIT
();
29
return
dest;
30
}
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
SkipCharTableBytes
byte * SkipCharTableBytes(const byte *p)
Definition:
SkipCharTableBytes.c:3
strcpyUC
byte * strcpyUC(byte *dest, const byte *src)
Definition:
strcpyUC.c:4
string
strcpyUC.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3