summaryrefslogtreecommitdiff
path: root/fmt_str.c
blob: 48930cf82d650bc74597756cffc9e1f854f8516d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "fmt.h"

unsigned int fmt_str(s,t)
register char *s; register char *t;
{
  register unsigned int len;
  char ch;
  len = 0;
  if (s) { while (ch = t[len]) s[len++] = ch; }
  else while (t[len]) len++;
  return len;
}