Exemplo n.º 1
0
static inline char *vcfFileCloneStr(struct vcfFile *vcff, char *str)
/* Use vcff's local mem to allocate memory for a string and copy it. */
{
return vcfFileCloneStrZ(vcff, str, strlen(str));
}
Exemplo n.º 2
0
static inline char *vcfFileCloneSubstr(struct vcfFile *vcff, char *line, regmatch_t substr)
/* Allocate memory for and copy a substring of line. */
{
return vcfFileCloneStrZ(vcff, line+substr.rm_so, (substr.rm_eo - substr.rm_so));
}
Exemplo n.º 3
0
Arquivo: vcf.c Projeto: bh0085/kent
static char *vcfFileCloneStr(struct vcfFile *vcff, char *str)
/* allocate memory for a string and copy it */
{
return vcfFileCloneStrZ(vcff, str, strlen(str));
}