[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-cvs: gaf.git: branch: master updated (1.6.1-20100214-155-g6dff7f3)
Peter TB Brett writes:
> [...]
> I tried %7s, but that didn't work. Is the '.' required, then?
According to 'man 3 printf', without the '.' you have a field width
that specify the minimum size of the field (and you get the full
commit id, no truncation).
With the '.' it becomes a precision option and becomes the maximum
number of characters of the field (and the commit id gets truncated to
7 chars).
printf() can even pick the length of the field from a parameter
(instead of harcoded in the format string) with '%.*s'.
Patrick
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs