aboutsummaryrefslogtreecommitdiffstats
path: root/csci4061/091420_breakout/address.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--csci4061/091420_breakout/address.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/csci4061/091420_breakout/address.c b/csci4061/091420_breakout/address.c
new file mode 100644
index 0000000..3f36f70
--- /dev/null
+++ b/csci4061/091420_breakout/address.c
@@ -0,0 +1,15 @@
+#include "include/main.h"
+#include "include/address.h"
+
+/*
+ * Write getAddress function
+ * void getAddress(char * address);
+ * Prints a prompt "Enter your address: " to get an address,
+ * Reads in the user's address
+ */
+
+void getAddress(char * address) {
+ printf("Enter your address: ");
+ fgets(address, maxLen, stdin);
+ fflush(stdin);
+} \ No newline at end of file