User Tools

Site Tools


user:abrunda1:portfolio:libstacks

Project: Stacks Library

A project for DATA by Andrew Brundage during the Fall 2011.

Objectives

State the purpose of this project.

The purpose of this project is to make a stacks library file that can 
be used in later programs so repetitively typing the same code over and 
over again is avoided

Prerequisites

In order to successfully accomplish/perform this project, the listed resources/experiences need to be consulted/achieved:

Background

State the idea or purpose of the project. What are you attempting to pursue?

Upon approval, you'll want to fill this section out with more detailed background information. DO NOT JUST PROVIDE A LINK.

Providing any links to original source material, such as from a project page, is a good idea.

You'll want to give a general overview of what is going to be accomplished (for example, if your project is about installing a web server, do a little write-up on web servers. What is it, why do we need one, how does it work, etc.)

Attributes

State and justify the attributes you'd like to receive upon successful approval and completion of this project.

  • libraries
  • stacks
  • doubly linked list library also called within this library

Code

isempty.c

#include "standard.h"
#include "structs.h"
 
int isEmpty(List *l)
{
	l->top = l->end;
	int status = 0;
	if(l->top == NULL)
	{
		status = -1;
	}
	return status;
}

peak.c

#include "standard.h"
#include "structs.h"
 
Node *peak(Node *top)
{
	return(top);
}

pop.c

#include "standard.h"
//#include "structs.h"
#include "../libdll/dll.h"
 
Node *pop(List *l)
{
	return(removificate(l));
}

push.c

#include "standard.h"
//#include "structs.h"
#include "../libdll/dll.h"
 
void push(List *l, int value)
{
	createnode(l, value);
}

References

In performing this project, the following resources were referenced:

  • URL1
  • URL2
  • URL3 (provides useful information on topic)
  • URL4

Generally, state where you got informative and useful information to help you accomplish this project when you originally worked on it (from Google, other wiki documents on the Lab46 wiki, etc.)

user/abrunda1/portfolio/libstacks.txt · Last modified: 2011/12/16 00:11 by abrunda1