FireBirdLib - Topfield TMS PVR TAP Programming Library
StrToISOAlloc.c
Go to the documentation of this file.
1#include <string.h>
2#include <stdlib.h>
3#include "libFireBird.h"
4
5void StrToISOAlloc(const byte *SourceString, byte **DestString)
6{
8
9 if((SourceString == NULL) || (DestString == NULL))
10 {
11 if(DestString) *DestString = NULL;
12
13 TRACEEXIT();
14 return;
15 }
16
17 *DestString = TAP_MemAlloc(strlenUC(SourceString) + 1);
18 StrToISO(SourceString, *DestString);
19
20 TRACEEXIT();
21}
void StrToISOAlloc(const byte *SourceString, byte **DestString)
Definition: StrToISOAlloc.c:5
#define TRACEEXIT()
Definition: libFireBird.h:1244
int strlenUC(const byte *s)
Definition: strlenUC.c:4
#define TRACEENTER()
Definition: libFireBird.h:1243
void StrToISO(const byte *SourceString, byte *DestString)
Definition: StrToISO.c:4