char *buffer = crm_malloc(sizeof(char)*(len+1)); snprintf(buffer, len, "%d", an_int);
char *buffer = NULL;  crm_malloc(buffer, sizeof(char)*(len+1)); if(buffer != NULL) { snprintf(buffer, len, "%d", an_int); }
crm_itoa(int an_int){	int len = 32;	char *buffer = crm_malloc(sizeof(char)*(len+1));	snprintf(buffer, len, "%d", an_int);	return buffer;}