summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/workflow.txt14
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/workflow.txt b/doc/workflow.txt
index e48375bb..02d13f64 100644
--- a/doc/workflow.txt
+++ b/doc/workflow.txt
@@ -21,13 +21,21 @@ int * a;
instead of
int *a;
-- don't explicitly cast malloc, but do
+- Don't explicitly cast malloc, but do
your * = malloc (sizeof *your * len);
-- when checking for invalid pointers use
+or
-if (ptr == NULL), instead of if (!ptr)
+your * = malloc (sizeof (*your) * len);
+
+- When checking for invalid pointers use
+
+if (ptr == NULL)
+
+instead of
+
+if (!ptr)
3. Development workflow