Table of Contents
Program implementing a menu with various options and the
functions struct node *create_node(struct ap_scan_info
*cell)
and void print_node(struct node *node_ptr)
already implemented.
Folder with name List_aps
in your
shared folder in Subversion. Local copy available
here.
To self-checking your code, you can use:
test_menu_operations_dynnamic_list_en.sh
Using the program of the option menu with the previously mentioned functions, make the following modifications:
Implement the function struct node
*create_list(struct ap_scan_info *array, int size)
that receives
as input parameters an array of data structures struct
ap_scan_info
and returns a linked list. In order to obtain this,
use the previously defined data type and the function struct node
*create_node(struct ap_scan_info *cell)
(from the previous
activities).
Add and implement a new menu option to create a linked list from the array. Store this list in a variable so that it can be used in other options.
Add and implement a new menu option to show all the
access points in the linked list. Use the function void
print_node(struct node *node_ptr)
from the previous
activities.
Add the required code so that the list, if it exists, is destroyed when the program terminates.
Optionally, upload the file to the repository with
svn commit
.
An additional exercise is included next to practice more linked list operations.
Program implementing a menu with various options and
including the function struct node *create_list(struct
ap_scan_info *array, int size)
and the code to destroy the list
when the program terminates.
Folder with name List_aps
in your
shared folder in Subversion. Local copy available
here
Using the program of the option menu make the following modifications:
Implement the function struct node
*delete_essid_in_list(struct node *, char *essid)
that receives a
linked list and a string containing a essid and deletes every single
node in the list whose essid is the given. The function returns the
modified list.
Add and implement a new menu option to
delete a essid from the a linked list. Use the function getline
Optionally, upload the file to the repository with
svn commit
.