look at this
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1048384537&id=1043284392
Type: Posts; User: jetfreggel
look at this
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1048384537&id=1043284392
include #include<stdlib.h> at the top of the program
thx again for your advice
thx again for your reply
but i don't get
sopy like strcpy
or returning from the function but when i try to assign
it to a new string my compiler says
incompatible types in assignment
i don't...
i think i got thank you for your advice
void strip_string(char *strip_buf)
{
char tmp_buf[12];
int i = 0;
int ii = 0;
char ch;
printf("%s", strip_buf);
hi everyone
i am writing a book datzabase(my first)
the trouble is when i want to check if the funcition finds the same isbn number it wrecks my linked list
an example
org isbn 1-234-56789-0...
forgot cur_rec=cur_rec->next_rec
was caught in an infinite loop and know the
first problem is gone
thx for your help
ah well i willi give it a try find it all very confusing
thx again for the quick info
another question is there a possiblity of having an infinte loop
at
while ( cur_rec != NULL )
but i want to copy my data to a tmp node and i want to
return the first node of my data to print
thx for your quick reply
i don;t get it what you mean with repairing this is my first program with single linked list
i want to make a temporay node that has as only purpose printing it for search result or deleting
i want to put my search result(from a linked list) into a linked list from a file
here is my code the problem i think is the loop
in the search fuction
but i don't see the problem
...
allready got it
with a kot of fgets() &&
and it worked
i am trying to write a database for my books
burt when i want to read from a file into my linked list
it breaks everything up in words
the file looks like this
stevens
network programming...
alreagy got it
replaced
[code]
puts("Enter string to replace");
fgets(str_replace, sizeof(str_replace), stdin);
p = strchr( str_replace, '\n' );
if ( p != NULL )
*p = '\0';...
thx again for the quick reply
ok i am getting nearer
file to search
we
came
here
we
came
here
thx again for your quick reply
the first one i understand now
but when i follow the second piece of code
i got this
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
thx for your reply
i tried it out
and i am puzzled about two things
fgets( buff, sizeof(buff), stdin ); //this is clear
but this searches through the whole string
for a new string if found...
hi everyone
it my first post here
my problem is i want ot replace a string of text
in a file the files are one a one word/one line
bases
i have come this far but i don't seem to get
strstr()...