It worked, thanks.
Type: Posts; User: felixthunder
It worked, thanks.
And what if I want to search for argv[1] instead of s. The following also does not work.
int
main(int argc, char *argv[])
{
char **t;
argc--;
I have an array of strings called tab.
I want to search for an array in it with the function bsearch() provided by <stdlib.h>.
But I think I am doing something wrong, since it cannot find "delta"....
I discover how to use dummy nodes whose .next element points to the beginning of a list.
This is how I defined merge:
struct listnode *
merge(struct listnode *a, struct listnode *b)
{
...
Yes, I am using old books, most from Kernighan and Rob Pike.
I wrote this program for practicing with stacks, but I have another version that uses arrays: https://pastebin.com/raw/mmi0CCZR
I am...
Thanks,
Such a dumb error.
But hey, why did you say it's obvious I didn't write it?
Why do you say that?
I did wrote that code.
Do you know why it doesn't work for text given by argument?
I am studying data structures and was asked to build a program that uses a stack to reverse lines of text. Here it is: https://pastebin.com/raw/CGq6ZaHM
The problem is: it works for the stdin...
Why did you declared curr as a pointer to pointer? It could be just a regular pointer, couldn't it?
I am learning data structures in C and, in one exercise, I was asked to create a function that merges two ordered linked lists into a single ordered linked list. Here it is:
static...