Katola2:
...
> void another_print_start(char *name, char *what){
> 
>  char c[3] = " :";
> 
>  c[2] = name[0] & ~0x20;
> 
>  write(2, c+2, 1);
>  write(2, name+1, strlen(name) -1);
>  write(2, c, 2);
>  write(2, what, strlen(what));
> 
> }

Why not just use writev(2) and write it one system call ?

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57


_______________________________________________
Dng mailing list
[email protected]
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to