Search:

Type: Posts; User: bartz

Search: Search took 0.01 seconds.

  1. Thread: Regcomp?

    by bartz
    Replies
    10
    Views
    1,770

    Well, for me it is, this is my first C script 8-)

    Well, for me it is, this is my first C script 8-)
  2. Thread: Regcomp?

    by bartz
    Replies
    10
    Views
    1,770

    Regcomp?

    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...
  3. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    That's a good solution too, but backspace and...

    That's a good solution too, but backspace and CTRL + U don't work...
  4. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    Ok, thank you guys very much for your help :)

    Ok, thank you guys very much for your help :)
  5. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    Still the same error, it works fine when I delete...

    Still the same error, it works fine when I delete the noecho() line...
  6. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    Yes I did, but it doesn't work, I get a...

    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);
  7. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    I understand I should turn off terminal echoing,...

    I understand I should turn off terminal echoing, but I don't know how to do it in C... Can anyone help me?
  8. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    Well, don't know why I needed that? I'm very new...

    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...
  9. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    FreeBSD

    FreeBSD
  10. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    Unix PC 64bit

    Unix PC 64bit
  11. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    What's the difference?

    What's the difference?
  12. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    Thank you very much! What did I do wrong? ...

    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?
  13. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    l think you're right, fixed that: #include...

    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);
    ...
  14. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    Sure I can: #include #include...

    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);
  15. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    Edit: If I don't declare x in the for loop, I...

    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':...
  16. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    Lol, fixed that, thanks, but the error is on line...

    Lol, fixed that, thanks, but the error is on line 7...
  17. Thread: Error

    by bartz
    Replies
    31
    Views
    4,689

    Error

    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 =...
Results 1 to 17 of 17