Well, for me it is, this is my first C script 8-)
Type: Posts; User: bartz
Well, for me it is, this is my first C script 8-)
I'm making my first C script, it logs on to a website and checks if it succeeded. Therefor, I need to check if the page contains "Je bent nu ingelogd". The website is saved in char *res.
Can...
That's a good solution too, but backspace and CTRL + U don't work...
Ok, thank you guys very much for your help :)
Still the same error, it works fine when I delete the noecho() line...
Yes I did, but it doesn't work, I get a segmentation fault:
#include <curses.h>
#include <stdio.h>
#include <string.h>
int main (int argc, char **argv) {
char *answer = malloc(64*1);
I understand I should turn off terminal echoing, but I don't know how to do it in C... Can anyone help me?
Well, don't know why I needed that? I'm very new to C so it's hard working with the *'s and stuff.
Does anyone of you know how to hide things you type? It's for password stuff, so I want it to be...
FreeBSD
Unix PC 64bit
What's the difference?
Thank you very much!
What did I do wrong?
Another question:
If I want to ask a password, how can I make sure it's printed as *'s or it isn't printed at all?
l think you're right, fixed that:
#include <string.h>
#include <stdio.h>
char **func_explode (char *str, char *sep) {
char **newstr = malloc(sizeof(str));
char *x = malloc (1024*4);
...
Sure I can:
#include <string.h>
#include <stdio.h>
char **func_explode (char *str, char *sep) {
char **newstr = malloc(sizeof(str));
char *x = malloc (1024*4);
Edit:
If I don't declare x in the for loop, I get an error @ compiling:
~/C$ make explode
cc -O2 -fno-strict-aliasing -pipe explode.c -o explode
explode.c: In function `func_explode':...
Lol, fixed that, thanks, but the error is on line 7...
Hi all,
I justed started C programming, after 1.5 year PHP programming. I tried to make a explode function just like in PHP, which exlodes a string with a given separator. Example:
char =...