:: Re: [DNG] "Common knowledge?"-quest…
Top Pagina
Delete this message
Reply to this message
Auteur: karl
Datum:  
Aan: dng
Onderwerp: Re: [DNG] "Common knowledge?"-question
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