]> pd.if.org Git - pdclib/blobdiff - functions/stdio/perror.c
Merged PDPCLIB and Therx code.
[pdclib] / functions / stdio / perror.c
index f93a53b522fa18ba3c8a00e9fa2a19973146cf8d..d94746cdb2c217399e61e82c45d583a280d9d511 100644 (file)
@@ -6,3 +6,21 @@
 // ----------------------------------------------------------------------------
 
 void perror( const char * s ) { /* TODO */ };
+
+/* PDPC code - unreviewed
+{
+    if ((s != NULL) && (*s != '\0'))
+    {
+        printf("%s: ");
+    }
+    if (errno == 0)
+    {
+        printf("No error has occurred\n");
+    }
+    else
+    {
+        printf("An error has occurred\n");
+    }
+    return;
+}
+*/