summaryrefslogtreecommitdiff
path: root/doc/ReferenceManual
diff options
context:
space:
mode:
authorjthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-04-07 16:39:03 +0000
committerjthorn <jthorn@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-04-07 16:39:03 +0000
commit319906f1d312916a0c106b8584465d5b021d0d07 (patch)
treeaf35547d843b00fe0c04dd420effb58f545f9c5c /doc/ReferenceManual
parent5bebf53162993af19c046b5b711e9e41c6e6f948 (diff)
fix Util_snprintf() examples to actually use Util_snprintf()
-- previously they used snprintf() git-svn-id: http://svn.cactuscode.org/flesh/trunk@4022 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'doc/ReferenceManual')
-rw-r--r--doc/ReferenceManual/UtilReference.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/ReferenceManual/UtilReference.tex b/doc/ReferenceManual/UtilReference.tex
index 6b24b5ac..76ca4678 100644
--- a/doc/ReferenceManual/UtilReference.tex
+++ b/doc/ReferenceManual/UtilReference.tex
@@ -438,17 +438,17 @@ int len;
char buffer[N_BUFFER];
/* safely format the values into the buffer */
-snprintf(buffer, N_BUFFER,
- "values are c='%c' i=%d d=%g s=\"%s\"",
- c, i, d, s);
+Util_snprintf(buffer, N_BUFFER,
+ "values are c='%c' i=%d d=%g s=\"%s\"",
+ c, i, d, s);
/*
* same as above example, but now explicitly check for the output
* being truncated due to the buffer being too small
*/
-const int len = snprintf(buffer, N_BUFFER,
- "values are c='%c' i=%d d=%g s=\"%s\"",
- c, i, d, s);
+const int len = Util_snprintf(buffer, N_BUFFER,
+ "values are c='%c' i=%d d=%g s=\"%s\"",
+ c, i, d, s);
if (len >= N_BUFFER)
{
/*