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:
parent
9f1ec97e3f
commit
36cf124a0d
@ -19,7 +19,7 @@ int main(void) {
|
||||
args.src = input;
|
||||
|
||||
// Display characters
|
||||
nmsexec(&args);
|
||||
nms_exec(&args);
|
||||
|
||||
// Don't forget to free the allocated memory!
|
||||
free(input);
|
||||
|
13
src/nms.c
13
src/nms.c
@ -41,20 +41,13 @@ struct winpos {
|
||||
char getMaskChar(void);
|
||||
|
||||
/*
|
||||
* void nmsexec(char *)
|
||||
* void nms_exec(NmsArgs *)
|
||||
*
|
||||
* DESCR:
|
||||
* Displays the characters stored in the / char * / parameter.
|
||||
*
|
||||
* 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.
|
||||
* Coming Soon...
|
||||
*
|
||||
*/
|
||||
char nmsexec(NmsArgs *args) {
|
||||
char nms_exec(NmsArgs *args) {
|
||||
struct winpos *list_pointer = NULL;
|
||||
struct winpos *start; // Always points to start of list
|
||||
struct winpos *temp; // Used for free()ing the list
|
||||
|
@ -13,6 +13,6 @@ typedef struct {
|
||||
// Function prototypes
|
||||
|
||||
// Display the characters stored in the display queue
|
||||
char nmsexec(NmsArgs *);
|
||||
char nms_exec(NmsArgs *);
|
||||
|
||||
#endif
|
||||
|
@ -161,7 +161,7 @@ int main(void) {
|
||||
args.input_cursor_x = ((termCols - strlen(foot2Center)) / 2) + 1;
|
||||
|
||||
// Display characters
|
||||
input = nmsexec(&args);
|
||||
input = nms_exec(&args);
|
||||
|
||||
switch (input) {
|
||||
case '1':
|
||||
|
Loading…
Reference in New Issue
Block a user