home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.forth      Forth programmers eat a lot of Bratwurst      117,927 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 116,449 of 117,927   
   Paul Rubin to dxf   
   Re: Numeric string output - conspicuousl   
   01 May 24 17:03:53   
   
   From: no.email@nospam.invalid   
      
   dxf  writes:   
   > As a matter of curiosity how and where does C do numeric conversion?   
   > Does it use a temp buffer?  If so, then it must do a copy to the   
   > destination.   
      
   User-supplied buffer, like   
      
      snprintf(buf, bufsize, "%d", n);   
      
   for general printf-style formatting.  There is a GNU extension   
   asprintf(...) which allocates the string with malloc.   
      
   C++ has its own stuff that is much different.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca