Search:

Type: Posts; User: raja9911

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: fflush

    by raja9911
    Replies
    2
    Views
    1,562

    thanks ;)

    thanks ;)
  2. Thread: fflush

    by raja9911
    Replies
    2
    Views
    1,562

    fflush

    I have a program running, which is fflush'ing data in
    with the following sentance

    while ( fgets( output, sizeof output, stdin ) !=EOF )

    now i want to make a client program which start this...
  3. Replies
    0
    Views
    1,283

    whats wrong - long code

    there is something wrong when i try to add data to my 2. msg queue.

    when i disable queue1[output] the code works perfect, but when i enable it the program just gets stuck

    to explain whats going...
  4. Replies
    2
    Views
    1,071

    oh ok - is there a command or way to create this...

    oh ok - is there a command or way to create this queue ?
  5. Replies
    2
    Views
    1,071

    yes/no quastion about mutex

    i have pretty simpel but importent quastion for my program

    if i have many threads going trough one critical section of kode stopped by a mutex

    when one thread is finish ready the critical...
  6. Replies
    2
    Views
    1,085

    problems with fork

    pls help.. i have spent 1½ day on this stupid problem. im pretty sure the solution is pretty simple but im new in c

    I have modified the code and removes all the unnesserary code with "....." so...
  7. Replies
    3
    Views
    2,324

    yeah i know i isnt anything else then 0, but this...

    yeah i know i isnt anything else then 0, but this is was a test before i added it to my program. II i can see ur point that child 2 is a parent and a child....

    thanks... ill fix this straight away...
  8. Replies
    5
    Views
    1,591

    thanks for the tutorial..it really helped.. its...

    thanks for the tutorial..it really helped.. its working now
  9. Replies
    3
    Views
    2,324

    y does it run fork twice

    when i run this code i get the message "this is child1" twice.. its only suppose to run one time?? am i doing anything wrong


    pid_t childpid1, childpid2;
    int main()
    {
    printf("Create 2...
  10. Replies
    5
    Views
    1,591

    it says incompatible types in assignment for...

    it says incompatible types in assignment
    for these three lines
    cpr = p->cpr;
    ankomst3 = p->ankomst;
    skade2 = p->skade;
  11. Replies
    5
    Views
    1,591

    forgot to add something.. read this code instead...

    forgot to add something.. read this code instead



    #include <stdio.h>

    #include <unistd.h>
    void input(patient *p, int nr, char cpr, char ankomst, char skade);

    typedef struct patient
  12. Replies
    5
    Views
    1,591

    inputting data in a struct

    i have some problems inputting data in a struct





    #include <stdio.h>

    #include <unistd.h>
    void input(patient *p, int nr, char cpr, char ankomst, char skade);
  13. Replies
    14
    Views
    1,471

    but can i ask u one thing y do u write...

    but can i ask u one thing

    y do u write cpr2[4]=0;

    and what does the "4" mean
  14. Replies
    14
    Views
    1,471

    oh yeah %s.. thats right.. thanks

    oh yeah %s.. thats right.. thanks
  15. Replies
    14
    Views
    1,471

    hmm its not working.. i changed the code and...

    hmm its not working..
    i changed the code and put a printf in it



    #include <stdio.h>

    #include <unistd.h>

    int main(){
  16. Replies
    14
    Views
    1,471

    take a piace of a char

    How is it possible to take part of a char and place it in a other char like




    #include <stdio.h>

    #include <unistd.h>

    int main()
  17. Replies
    1
    Views
    1,266

    i need some advice

    im making a school project in c programming.. and i need some advice.

    the program is about an hospital.

    i have made a struct which holds the information about the patiens infomation such as...
  18. Replies
    9
    Views
    22,027

    it worked perfect... thanks

    it worked perfect... thanks
  19. Replies
    9
    Views
    22,027

    it didnt work.. sorry... but thanks anyway

    it didnt work.. sorry... but thanks anyway
  20. Replies
    9
    Views
    22,027

    how to convert int to char

    Heyy

    i know its possieble to convert char to int with atoi

    but is it possible to do it the other way ...

    int --> char ??????????????
  21. Thread: char to int

    by raja9911
    Replies
    9
    Views
    2,027

    niceee.. it worked very well.. thank u very...

    niceee.. it worked very well.. thank u very much.. u guys are the best
  22. Thread: char to int

    by raja9911
    Replies
    9
    Views
    2,027

    thanks but the thing i want to do is to take a...

    thanks but the thing i want to do is to take a charactor out of a char and convert it to int so i can multply it eg.

    char test[20] = "12345678";

    now i want to multiply 8 with 5 and place it...
  23. Thread: char to int

    by raja9911
    Replies
    9
    Views
    2,027

    char to int

    How is it possible to convert a letter in char to int
  24. Thread: plss help

    by raja9911
    Replies
    13
    Views
    2,526

    thank u guys... all try it out

    thank u guys... all try it out
  25. Thread: plss help

    by raja9911
    Replies
    13
    Views
    2,526

    what am i doing wrong ???? #include...

    what am i doing wrong ????


    #include <stdio.h>

    #include <unistd.h>

    int main()
    {
    char output[1024];
Results 1 to 25 of 29
Page 1 of 2 1 2