Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
347 B

  1. #include "fmt.h"
  2. unsigned long fmt_str(char *out,const char *in) {
  3. register char* s=out;
  4. register const char* t=in;
  5. for (;;) {
  6. if (!*t) break; if (s) { *s=*t; ++s; } ++t;
  7. if (!*t) break; if (s) { *s=*t; ++s; } ++t;
  8. if (!*t) break; if (s) { *s=*t; ++s; } ++t;
  9. if (!*t) break; if (s) { *s=*t; ++s; } ++t;
  10. }
  11. return t-in;
  12. }