summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/OR_PRACTICAL_C/16_1.c
diff options
context:
space:
mode:
Diffstat (limited to 'reference/C/CONTRIB/OR_PRACTICAL_C/16_1.c')
-rw-r--r--reference/C/CONTRIB/OR_PRACTICAL_C/16_1.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/reference/C/CONTRIB/OR_PRACTICAL_C/16_1.c b/reference/C/CONTRIB/OR_PRACTICAL_C/16_1.c
new file mode 100644
index 0000000..6f2c0f2
--- /dev/null
+++ b/reference/C/CONTRIB/OR_PRACTICAL_C/16_1.c
@@ -0,0 +1,6 @@
+#include <stdlib.h> /* using ANSI C standard libraries */
+main()
+{
+ char *string_ptr;
+
+ string_ptr = malloc(80);