1 proc prints(chan out, value fmt[], str[]) =
2 -- Like fprintf(out, fmt, str), with only %s or %<width>s in fmt[]
17 while (i<=len) and ('0'<=fmt[byte i]) and (fmt[byte i]<='9')
19 w:=(w*10)+(fmt[byte i]-'0')
29 seq i=[0 for w-str[byte 0]]
31 seq i=[0 for str[byte 0]]