summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--catsprintf.c8
-rw-r--r--catsprintf.h2
2 files changed, 6 insertions, 4 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;
}
+*/
diff --git a/catsprintf.h b/catsprintf.h
index 0ca5065..fbe9958 100644
--- a/catsprintf.h
+++ b/catsprintf.h
@@ -78,7 +78,7 @@ typedef struct _dmi_minor {
struct _dmi_minor* next;
} dmi_minor;
-int catsprintf(char *buf, const char *format, ...);
+//int catsprintf(char *buf, const char *format, ...);
void dmiAppendData(PyObject *pydata, const int count);
dmi_minor* dmiAppendObject(long code, char const *key, const char *format, ...);
int dmiSetItem(PyObject* dict, const char *key, const char *format, ...);