Mercurial > libpst
comparison src/libstrfunc.c @ 31:b88ceb81dba2
mege changes from Joe Nahmias
author | carl |
---|---|
date | Tue, 10 Jul 2007 17:17:28 -0700 |
parents | c508ee15dfca |
children | 6fe121a971c9 |
comparison
equal
deleted
inserted
replaced
30:45eccad4b606 | 31:b88ceb81dba2 |
---|---|
25 register void * dte = (void*)((char*)data + size); | 25 register void * dte = (void*)((char*)data + size); |
26 #endif | 26 #endif |
27 //register void *dte=data + size; | 27 //register void *dte=data + size; |
28 register int nc=0; | 28 register int nc=0; |
29 | 29 |
30 if(data == NULL) | 30 if ( data == NULL || size == 0 ) |
31 return NULL; | 31 return NULL; |
32 | 32 |
33 ou=output=(char *)malloc(size / 3 * 4 + (size / 50) + 5); | 33 ou=output=(char *)malloc(size / 3 * 4 + (size / 50) + 5); |
34 if(!output) | 34 if(!output) |
35 return NULL; | 35 return NULL; |