From 5d3087204437a00234d5102d69459c66618ec1a7 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 15 Feb 2009 20:46:13 +0000 Subject: [PATCH] Document function sensors_snprintf_chip_name. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5653 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/libsensors.3 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/libsensors.3 b/lib/libsensors.3 index ad1eaab0..2364dee3 100644 --- a/lib/libsensors.3 +++ b/lib/libsensors.3 @@ -42,6 +42,8 @@ libsensors \- publicly accessible functions provided by the sensors library /* Chip name handling */ .BI "int sensors_parse_chip_name(const char *" orig_name "," .BI " sensors_chip_name *" res ");" +.BI "int sensors_snprintf_chip_name(char *" str ", size_t " size "," +.BI " const sensors_chip_name *" chip ");" .BI "const char *sensors_get_adapter_name(const sensors_bus_id *" bus ");" /* Chips and features enumeration */ @@ -90,6 +92,11 @@ is a string representing the version of libsensors. parses a chip name to the internal representation. Return 0 on success, <0 on error. +.B sensors_snprintf_chip_name() +prints a chip name from its internal representation. Note that chip should +not contain wildcard values! Return the number of characters printed on +success (same as snprintf), <0 on error. + .B sensors_get_adapter_name() returns the adapter name of a bus number, as used within the sensors_chip_name structure. If it could not be found, it returns NULL.