Search:

Type: Posts; User: zell

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    28
    Views
    3,619

    okie i learn something new thanks :cool:

    okie i learn something new
    thanks :cool:
  2. Replies
    28
    Views
    3,619

    thanks alot!!! it finally works :p wat with...

    thanks alot!!!
    it finally works :p
    wat with the \r anyway? wat does it means?
    this \r has been driving me crazy for like days .......

    once again thanks alot!!! ;)
  3. Replies
    28
    Views
    3,619

    i already clean up those malloc already i could...

    i already clean up those malloc already
    i could get the correct result too if i run the program in windows

    but i cannot get the result running it in cygwin :(
    this is wat i get in cygwin
    ...
  4. Replies
    28
    Views
    3,619

    here it is setpath /usr/bin/ w -s //suppose...

    here it is

    setpath /usr/bin/
    w -s
    //suppose to have 1 more feedline here, but cannot display in the post here

    i also tidied up the code from some of the advice

    #include <stdio.h>
    #include...
  5. Replies
    28
    Views
    3,619

    i really dun know wat is happening..... if u...

    i really dun know wat is happening.....

    if u were saying the allocating 10K for every single line, but our lecturer wanted us to allocate that

    as for the token = malloc(100) ;
    i already remove...
  6. Replies
    28
    Views
    3,619

    ok but now my main problem is with the ...

    ok
    but now my main problem is with the


    //printing for debugging
    printf("path = %s\n", path[1]) ; //this prints path = /usr/bin/
    printf("parameter = %s\n", parameter[0]) ; ...
  7. Replies
    28
    Views
    3,619

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <sys/types.h>
    #include <sys/wait.h>
    #include <unistd.h>
    #include <string.h>

    int main(int argc, char *argv[])
    {
    //check correct num of...
  8. Replies
    28
    Views
    3,619

    [QUOTE=Salem]> why is this so? Probably luck. ...

    [QUOTE=Salem]> why is this so?
    Probably luck.

    cos i was thinking there is some bug with cygwin

    this is the part of the code

    printf("path = %s\n", path[1]) ;
    printf("parameter =...
  9. Replies
    28
    Views
    3,619

    printf("%s\n", path) ; //this print...

    printf("%s\n", path) ; //this print /usr/bin/
    printf("%s\n", parameter[0]) ; //this print w
    strcat(path, parameter[0]) ;
    printf("%s\n", path) ; //this print wusr/bin/
    ...
  10. Replies
    28
    Views
    3,619

    okie i have the reading of lines done hope i am...

    okie i have the reading of lines done
    hope i am doing it right


    FILE *f ;
    f = fopen(argv[1], "r") ;

    char *line[100] ;
    char *word = malloc(10000) ;
    int count = 0 ;
  11. Thread: cygwin help

    by zell
    Replies
    1
    Views
    1,107

    cygwin help

    hi all
    i needed to do some compilation with unix function like fork() and stuff
    so i went to download cygwin

    but i do not seemed to be able to work there
    there issn't folder for me work with...
  12. Replies
    28
    Views
    3,619

    as in like this? char* newpath = malloc(100) ;...

    as in like this?

    char* newpath = malloc(100) ;
    newpath = strcat(path, parameter[0]) ;
    printf("%s\n", newpath) ;

    this gave the same...
  13. Replies
    28
    Views
    3,619

    how do i do that? i am sorry because i am rather...

    how do i do that?
    i am sorry because i am rather new to c and really dun understand the malloc and buffer thing

    thanks for help
  14. Replies
    28
    Views
    3,619

    this is the whole code if needed #include...

    this is the whole code if needed


    #include <stdio.h>
    #include <stdlib.h>
    #include <sys/types.h>
    #include <sys/wait.h>
    #include <unistd.h>
    #include <string.h>
  15. Replies
    28
    Views
    3,619

    maybe i add the declaration of the variables to...

    maybe i add the declaration of the variables to be clear


    char *parameter[100] ;
    char *path ;

    i want to append my parameter to my path string
    but i just cannot get the desired result

    my...
  16. Replies
    28
    Views
    3,619

    need help with strcat function

    printf("%s\n", path) ; //this print /usr/bin/
    printf("%s\n", parameter[0]) ; //this print w
    strcat(path, parameter[0]) ;
    printf("%s\n", path) ; //this print wusr/bin/
    ...
  17. Replies
    10
    Views
    12,814

    now i come to another problem i want to create a...

    now i come to another problem
    i want to create a another window for the sliding bar itself

    how do i do it?
  18. Replies
    10
    Views
    12,814

    thanks :p did a pretty simple one, but enough...

    thanks :p
    did a pretty simple one, but enough for my case :D
  19. Replies
    10
    Views
    12,814

    u know those u adjust to the left and right to...

    u know those u adjust to the left and right to achieve different values
    something like a scroll bar on the right of the IE browser
  20. Replies
    10
    Views
    12,814

    how to create a sliding bar in opengl?

    anyone got any sample code on how to create a sliding bar in opengl?

    i try looking on the net, couldn't find one.

    thanks alot in advance
  21. Thread: Bad System Call

    by zell
    Replies
    1
    Views
    6,976

    Bad System Call

    #include <stdio.h>
    #include <unistd.h>
    #include <stdlib.h>
    #include <sys/ipc.h>
    #include <sys/shm.h>

    int id;
    int shared_mem_id;
    int *s;
  22. Replies
    11
    Views
    6,850

    i dun get it :confused: so wat i am supposed...

    i dun get it :confused:
    so wat i am supposed to do? :confused:
  23. Replies
    11
    Views
    6,850

    configurating dev-c++ for openGL

    #include <glut.h>

    void mydisplay()
    {
    glClear(GL_COLOR_BUFFER_BIT) ;
    glBegin(GL_POLYGON) ;
    glVertex2f(-0.5, -0.5) ;
    glVertex2f(-0.5, 0.5) ;
    glVertex2f(0.5,...
  24. Replies
    3
    Views
    3,713

    cool, this is a nice technique thanks :)

    cool, this is a nice technique
    thanks :)
  25. Replies
    1
    Views
    4,055

    why do ethernet frame restricts to 1500 bytes?

    as topic says....

    i know there is another type called jumbo ethernet frame which is 9000 bytes.
    but since increasing frame size will help increase efficiency, then why ethernet frame restricts to...
Results 1 to 25 of 37
Page 1 of 2 1 2