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

char* rtnl_link_stat2str ( int  st,
char *  buf,
size_t  len 
)

Convert a link statistic to a character string (Reentrant).

  • st link statistic
  • buf destination buffer
  • len buffer length
Converts a link statistic to a character string and stores it in the specified destination buffer.

Returns:
The destination buffer or the statistic encoded in hexidecimal form if no match was found.

Definition at line 980 of file link.c.

{
      return __type2str(st, buf, len, link_stats, ARRAY_SIZE(link_stats));
}


Generated by  Doxygen 1.6.0   Back to index