[cs631apue] -w Rawprint

Tejas Nadkarni tnadkarn at stevens.edu
Sun Oct 13 13:02:12 EDT 2013


Jan,

Can you please clarify on this question below? This is the last thing I
have left. Both -q and -w operate on the path name. -q replaces non
printable characters with '?' and -w prints the pathname raw using fwrite.

Is this correct?



On Sun, Oct 13, 2013 at 12:50 PM, Tejas Nadkarni <tnadkarn at stevens.edu>wrote:

> Also for the -w flag, are we just forcing print of the non-printable
> characters in the path.
>
> i.e. if -q is selected it replaces non printable characters with '?' but
> if -w is selected it just forces them to be printed out based on isprint().
>
> Is that right?
>
>
> On Sun, Oct 13, 2013 at 10:12 AM, Tejas Nadkarni <tnadkarn at stevens.edu>wrote:
>
>> Is there an easy way to switch to rawprint without rewriting code? I'm
>> using printf statements for outputting to stdout and was wondering if
>> there's a way to format for raw output without duplicating the code and
>> switching printf to fwrite.
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20131013/4dced8b6/attachment.html>


More information about the cs631apue mailing list