aboutsummaryrefslogtreecommitdiffstats
path: root/csci4061/091420_breakout/major.c
blob: cfc9cef892756ee03ea339d0c84422b7d3beca36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}