string.cc 676 B

12345678910111213141516171819202122
  1. /********************************************************************** <BR>
  2. This file is part of Crack dot Com's free source code release of
  3. Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
  4. information about compiling & licensing issues visit this URL</a>
  5. <PRE> If that doesn't help, contact Jonathan Clark at
  6. golgotha_source@usa.net (Subject should have "GOLG" in it)
  7. ***********************************************************************/
  8. #include "string.hh"
  9. char *form(char *form, ... )
  10. {
  11. va_list args;
  12. char buf[1024];
  13. va_start(args,form);
  14. vsprintf(buf,form,args);
  15. va_end(args);
  16. return strdup(buf);
  17. }