OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_ut_fmtcb.c versions 1.4 and 1.5
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_ut_fmtcb.c 1.4 -> 1.5

--- l2_ut_fmtcb.c        2002/01/02 17:07:38     1.4
+++ l2_ut_fmtcb.c        2002/07/17 11:19:30     1.5
@@ -30,6 +30,7 @@
 #include <ctype.h>
 
 #include "l2.h"
+#include <errno.h>
 
 l2_result_t 
 l2_util_fmt_string(
@@ -188,3 +189,12 @@
     return L2_OK;
 }
 
+l2_result_t 
+l2_util_fmt_errno(
+    l2_context_t *ctx, const char id, const char *param,
+    char *bufptr, size_t bufsize, size_t *buflen, va_list *ap)
+{   
+    sprintf(bufptr, "(%d) %s", errno, strerror(errno)); 
+    *buflen = strlen(bufptr);
+    return L2_OK;
+}

CVSTrac 2.0.1