2001-02-02 17:54:47 +00:00
|
|
|
#include "fmt.h"
|
|
|
|
|
|
|
|
unsigned int fmt_str(char *out,const char *in) {
|
|
|
|
register char* s=out;
|
|
|
|
register const char* t=in;
|
|
|
|
for (;;) {
|
2001-11-25 15:51:44 +00:00
|
|
|
if (!*t) break; if (s) { *s=*t; ++s; } ++t;
|
|
|
|
if (!*t) break; if (s) { *s=*t; ++s; } ++t;
|
|
|
|
if (!*t) break; if (s) { *s=*t; ++s; } ++t;
|
|
|
|
if (!*t) break; if (s) { *s=*t; ++s; } ++t;
|
2001-02-02 17:54:47 +00:00
|
|
|
}
|
2001-11-25 15:51:44 +00:00
|
|
|
return t-in;
|
2001-02-02 17:54:47 +00:00
|
|
|
}
|