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.

13 lines
350 B

21 years ago
21 years ago
21 years ago
21 years ago
  1. #include "fmt.h"
  2. size_t 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 (size_t)(t-in);
  12. }