[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/data-out.c
From: |
John Darrington |
Subject: |
[Pspp-cvs] Changes to pspp/src/data-out.c |
Date: |
Sat, 26 Nov 2005 17:49:58 -0500 |
Index: pspp/src/data-out.c
diff -u pspp/src/data-out.c:1.19 pspp/src/data-out.c:1.20
--- pspp/src/data-out.c:1.19 Sun Jul 31 21:42:46 2005
+++ pspp/src/data-out.c Sat Nov 26 22:49:57 2005
@@ -56,7 +56,7 @@
/* Converts binary value V into printable form in the exactly
FP->W character in buffer S according to format specification
FP. No null terminator is appended to the buffer. */
-void
+bool
data_out (char *s, const struct fmt_spec *fp, const union value *v)
{
int cat = formats[fp->type].cat;
@@ -73,7 +73,7 @@
{
memset (s, ' ', fp->w);
s[fp->w - fp->d - 1] = '.';
- return;
+ return true;
}
/* Handle decimal shift. */
@@ -189,6 +189,8 @@
/* Error handling. */
if (!ok)
strncpy (s, "ERROR", fp->w);
+
+ return ok;
}
/* Converts V into S in F format with width W and D decimal places,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] Changes to pspp/src/data-out.c,
John Darrington <=