Logo Search packages:      
Sourcecode: nut version File versions  Download package

void toprint_str ( char *  str,
int  len 

Convert a string to printable characters (in-place).

[in,out] str String to convert
[in] len Maximum number of characters to convert, or <= 0 to convert all.
Uses toprint() macro defined above.

Definition at line 469 of file tripplite_usb.c.

References toprint.

      int i;
      if(len <= 0) len = strlen(str);
      for(i=0; i < len; i++)
            str[i] = toprint(str[i]);

Generated by  Doxygen 1.6.0   Back to index