www.pudn.com > PocketC.zip > strtoc.c


// Hack it up 
 
hackitup(string str) { 
  pointer ptr; 
  string ret; 
  int i, len; 
 
  // determine the required length 
  len = strlen(str) + 1; 
  // allocate enough space 
  ptr = malloct(len, "c"); 
  // fill the block with the chars from the string 
  strtoc(str, ptr); 
 
  // process each char 
  for (i=0;i