home bbs files messages ]

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

   alt.unix.geeks      The gathering of the socially-retarded      298 messages   

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

   Message 229 of 298   
   rbowman to Charlie Gibbs   
   Re: What is wrong with C? (and fond memo   
   06 Jan 26 20:10:57   
   
   XPost: comp.os.linux.misc, alt.folklore.computers   
   From: bowman@montana.com   
      
   On Tue, 06 Jan 2026 18:57:04 GMT, Charlie Gibbs wrote:   
      
   > Inspired by readline(), I've written my own replacements for strcpy()   
   > and strcat() that do much the same thing.   
      
   To quote from the strcat man page "Read about Shlemiel the painter.".   
   stpcpy() was a late arrival and I never used it. I do use a similar   
   construct   
      
   char buf[1024];   
   char* ptr = buf;   
      
   ptr += sprintf(ptr, "%s", "some stuff");   
   ptr += sprintf(ptr, "%s", " some more stuff");   
      
   Whether or not I do a test depends on the context.   
      
   --- 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