No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
8 Posted Topics
Re: [QUOTE=Narue][SIZE=3][B]Removing a newline in C[/B][/SIZE] The fgets function in C is annoying in that it copies a newline character to the buffer:[/QUOTE] instead of performing that little dance every time, i'd just write a new function and get it over with. [CODE] char *fget(char *s, int size, FILE * stream) … | |
Re: [url=http://gambas.sourceforge.net/]Gambas[/url] is supposed to be a lot like Visual Basic. glade (and gtk) use 'boxes' to lay out widgets. add a box, then add a widget to it. | |
Re: [QUOTE="TkTkorrovi"]Hi! I usually use mingw [url]http://www.mingw.org[/url], as this uses a linux compiler gcc,[/quote] mingw has nothing to do with linux whatsoever. [quote]and is therefore very reliable and complies to standards more than any other.[/QUOTE] it complies with a 16-year old version of the ANSI C standard, but that's about it. | |
Re: system() insecure. use execl, execle, execv, or execve. | |
Re: i don't think your "cut" command is working why are you writing this in c? [code]lynx -dump http://www.startsiden.no/sport/nyheter/ | grep vgart | cut -d \" -f2[/code] | |
Re: you aren't allowed to use qsort? [code]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #define NINTS 3 int compar(int *a, int *b) { return (*a>*b); } int main(int argc, char *argv[]) { int i,ints[NINTS]; char buf[BUFSIZ]; printf("enter %d integer values:\n",NINTS); for (i=0;i<NINTS;++i) { memset(buf,0,BUFSIZ); fgets(buf,BUFSIZ,stdin); ints[i]=strtol(buf, (char **)NULL, 10); if … | |
Re: cool. i'm going to have to check that out (pun intended). | |
Re: recursive programming is an important and powerful paradigm. if you want to get into it and be able to "think recursively," you should really spend some time using LISP. here's a couple of recursive functions that might actually be useful. don't use them in production code if your compiler doesn't … |