sprintf(*dataptr, "XPMEXT %s", ext->name);
snprintf(*dataptr, data_size, "XPMEXT %s", ext->name);
CreateExtensions(dataptr, offset, ext, num, ext_nlines)    char **dataptr;    unsigned int offset;    XpmExtension *ext;    unsigned int num;    unsigned int ext_nlines;{    unsigned int x, y, a, b;    char **line;    *(dataptr + 1) = *dataptr + offset;    dataptr++;    a = 0;    for (x = 0; x < num; x++, ext++) {	sprintf(*dataptr, "XPMEXT %s", ext->name);	a++;	if (a < ext_nlines)	    *(dataptr + 1) = *dataptr + strlen(ext->name) + 8;	dataptr++;	b = ext->nlines;	for (y = 0, line = ext->lines; y < b; y++, line++) {	    strcpy(*dataptr, *line);	    a++;	    if (a < ext_nlines)		*(dataptr + 1) = *dataptr + strlen(*line) + 1;	    dataptr++;	}    }    strcpy(*dataptr, "XPMENDEXT");}