summaryrefslogtreecommitdiffstats
path: root/catsprintf.c
diff options
context:
space:
mode:
authornima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-10-29 06:35:21 +0000
committernima <nima@abc39116-655e-4be6-ad55-d661dc543056>2008-10-29 06:35:21 +0000
commite2f610150c546645c4520cbb5f79c5fd0571ce53 (patch)
tree69a461158abd594b840c67696864de45cb446ed6 /catsprintf.c
parent4dbf349a3c8c623f08b9d20991461814888ab492 (diff)
downloadpython-dmidecode-e2f610150c546645c4520cbb5f79c5fd0571ce53.tar.gz
python-dmidecode-e2f610150c546645c4520cbb5f79c5fd0571ce53.tar.xz
python-dmidecode-e2f610150c546645c4520cbb5f79c5fd0571ce53.zip
Committing new dmidecode helper functions, and next, renaming it to a
meaningful name. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@74 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'catsprintf.c')
-rw-r--r--catsprintf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/catsprintf.c b/catsprintf.c
index 842067e..bee466f 100644
--- a/catsprintf.c
+++ b/catsprintf.c
@@ -90,20 +90,22 @@ int dmiSetItem(PyObject* dict, const char *key, const char *format, ...) {
return 0;
}
+/*
int catsprintf(char *buf, const char *format, ...) {
if(format == NULL) {
bzero(buf, strlen(buf));
return 0;
}
- va_list arg; /* will point to each unnamed argument in turn */
- va_start(arg, format); /* point to first element after fmt */
+ va_list arg; /* will point to each unnamed argument in turn * /
+ va_start(arg, format); /* point to first element after fmt * /
char b[8192];
int c = vsprintf (b, format, arg);
strcat(buf, b);
- va_end(arg); /* cleanup */
+ va_end(arg); /* cleanup * /
return c;
}
+*/