Homework 07: Initial Import
This commit is contained in:
parent
1432c00d54
commit
1a1cb9f122
8 changed files with 482 additions and 0 deletions
31
homework07/node.c
Normal file
31
homework07/node.c
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* node.c: Node Structure */
|
||||
|
||||
#include "list.h"
|
||||
|
||||
/* Node Functions */
|
||||
|
||||
/**
|
||||
* Create a Node structure.
|
||||
*
|
||||
* @param v Value (Number or String).
|
||||
* @param next Pointer to next Node structure.
|
||||
* @param prev Pointer to previous Node structure.
|
||||
*
|
||||
* @return Pointer to new Node structure (must be deleted later).
|
||||
**/
|
||||
Node * node_create(Value v, Node *next, Node *prev) {
|
||||
// TODO
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete Node structure and its contents.
|
||||
*
|
||||
* @param n Pointer to Node structure.
|
||||
* @param release Whether or not to free the string value.
|
||||
**/
|
||||
void node_delete(Node *n, bool release) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
/* vim: set sts=4 sw=4 ts=8 expandtab ft=c: */
|
||||
Loading…
Reference in a new issue