Changed nmsexec() to nms_exec()

modified:   src/main.c
	modified:   src/nms.c
	modified:   src/nms.h
	modified:   src/sneakers.c
This commit is contained in:
Brian Barto 2016-04-20 17:55:07 -04:00
parent 9f1ec97e3f
commit 36cf124a0d
4 changed files with 6 additions and 13 deletions

View File

@ -19,7 +19,7 @@ int main(void) {
args.src = input; args.src = input;
// Display characters // Display characters
nmsexec(&args); nms_exec(&args);
// Don't forget to free the allocated memory! // Don't forget to free the allocated memory!
free(input); free(input);

View File

@ -41,20 +41,13 @@ struct winpos {
char getMaskChar(void); char getMaskChar(void);
/* /*
* void nmsexec(char *) * void nms_exec(NmsArgs *)
* *
* DESCR: * DESCR:
* Displays the characters stored in the / char * / parameter. * Coming Soon...
*
* ARGS:
* char *src - characters to display
* char *returnOptions - user must press key in one of the characters contained in this array
* before execution will continue after /char *src/ is revealed. All
* other keyboard selections will be ignored. Most commonly used when
* displaying a menu.
* *
*/ */
char nmsexec(NmsArgs *args) { char nms_exec(NmsArgs *args) {
struct winpos *list_pointer = NULL; struct winpos *list_pointer = NULL;
struct winpos *start; // Always points to start of list struct winpos *start; // Always points to start of list
struct winpos *temp; // Used for free()ing the list struct winpos *temp; // Used for free()ing the list

View File

@ -13,6 +13,6 @@ typedef struct {
// Function prototypes // Function prototypes
// Display the characters stored in the display queue // Display the characters stored in the display queue
char nmsexec(NmsArgs *); char nms_exec(NmsArgs *);
#endif #endif

View File

@ -161,7 +161,7 @@ int main(void) {
args.input_cursor_x = ((termCols - strlen(foot2Center)) / 2) + 1; args.input_cursor_x = ((termCols - strlen(foot2Center)) / 2) + 1;
// Display characters // Display characters
input = nmsexec(&args); input = nms_exec(&args);
switch (input) { switch (input) {
case '1': case '1':