thanks ;)
Type: Posts; User: raja9911
thanks ;)
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...
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...
oh ok - is there a command or way to create this queue ?
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...
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...
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...
thanks for the tutorial..it really helped.. its working now
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...
it says incompatible types in assignment
for these three lines
cpr = p->cpr;
ankomst3 = p->ankomst;
skade2 = p->skade;
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
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);
but can i ask u one thing
y do u write cpr2[4]=0;
and what does the "4" mean
oh yeah %s.. thats right.. thanks
hmm its not working..
i changed the code and put a printf in it
#include <stdio.h>
#include <unistd.h>
int main(){
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()
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...
it worked perfect... thanks
it didnt work.. sorry... but thanks anyway
Heyy
i know its possieble to convert char to int with atoi
but is it possible to do it the other way ...
int --> char ??????????????
niceee.. it worked very well.. thank u very much.. u guys are the best
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...
How is it possible to convert a letter in char to int
thank u guys... all try it out
what am i doing wrong ????
#include <stdio.h>
#include <unistd.h>
int main()
{
char output[1024];