LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-17-2014, 07:03 AM   #1
Louis.A
LQ Newbie
 
Registered: Apr 2014
Posts: 5

Rep: Reputation: Disabled
Linux C Question: fail when I try to write stack in Generic Programming


I am using c programming language class pan(stack datatype)
And it failed.
Commissioning of the afternoon I found a file in question, but do not know how to solve

This is the file in question, and the question of when moreorless this-> len is greater than 0 when an error occurs (line 22 realloc) when MORE

There is [URL="http://paste.ubuntu.com/7477826/"]the header file{/URL].

There are all else codes, including the test file, I have put up here (included a makefile,you can try command "make test")

Thanks a lot.
 
Old 05-18-2014, 02:02 AM   #2
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
oops!

Last edited by psionl0; 05-18-2014 at 02:03 AM.
 
  


Reply

Tags
linux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] fail to write to USB device boot sector wiener Programming 2 07-07-2010 04:04 PM
Fail to Mount iPod Nano Read-Write Muraii Slackware 3 07-28-2008 11:30 PM
generic parser to read/write linux config files amitchandel Linux - Software 1 06-14-2004 04:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration