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