aboutsummaryrefslogtreecommitdiffstats
path: root/csci4061/091420_breakout/major.c
diff options
context:
space:
mode:
authorMatthew Strapp <msattr@gmail.com>2020-09-15 13:16:09 -0500
committerMatthew Strapp <msattr@gmail.com>2020-09-15 13:16:09 -0500
commitccd82f53b74a1bac542d66eb7320fd2be5a9fd5a (patch)
tree35ae7abc6f9dcf44416511a1d4812263f34fab2d /csci4061/091420_breakout/major.c
parentadd gitignore (diff)
downloadhomework-ccd82f53b74a1bac542d66eb7320fd2be5a9fd5a.tar
homework-ccd82f53b74a1bac542d66eb7320fd2be5a9fd5a.tar.gz
homework-ccd82f53b74a1bac542d66eb7320fd2be5a9fd5a.tar.bz2
homework-ccd82f53b74a1bac542d66eb7320fd2be5a9fd5a.tar.lz
homework-ccd82f53b74a1bac542d66eb7320fd2be5a9fd5a.tar.xz
homework-ccd82f53b74a1bac542d66eb7320fd2be5a9fd5a.tar.zst
homework-ccd82f53b74a1bac542d66eb7320fd2be5a9fd5a.zip
add first breakout
Diffstat (limited to 'csci4061/091420_breakout/major.c')
-rw-r--r--csci4061/091420_breakout/major.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/csci4061/091420_breakout/major.c b/csci4061/091420_breakout/major.c
new file mode 100644
index 0000000..cfc9cef
--- /dev/null
+++ b/csci4061/091420_breakout/major.c
@@ -0,0 +1,15 @@
+#include "include/main.h"
+#include "include/major.h"
+
+/*
+ * Write getMajor function
+ * void getMajor(char * major);
+ * Prints a prompt "Enter your major: " to get an major,
+ * Reads in the user's major
+ */
+
+void getMajor(char * major) {
+ printf("Enter your major: ");
+ fgets(major, maxLen, stdin);
+ fflush(stdin);
+} \ No newline at end of file