Search:

Type: Posts; User: cruxxe

Search: Search took 0.02 seconds.

  1. why cant i start the process i stop using SIGCONT

    while((readfd = read(pfd[0], buffer, sizeof(buffer))) != 0)
    {
    input = atoi(buffer);
    printf("Testing : %d \n", input);

    if(input == 1)
    {
    kill(ppid, SIGCONT);
    printf("Button ON \n");
    }
  2. Thread: dup2()

    by cruxxe
    Replies
    0
    Views
    1,608

    dup2() solved..thanks...

    if(pid == 0)
    {
    printf("I am the grandchild process %d\n", pid);

    /* closes the output side of the pipe */
    close(pfd[1]);

    /* read input from pipe */
    while((test =...
  3. Replies
    5
    Views
    1,509

    Thanks Hammer... :p

    Thanks Hammer... :p
  4. I can have some rest now.........proggie is...

    I can have some rest now.........proggie is working.

    Thanks everyone for your help. :D
  5. Replies
    5
    Views
    1,509

    Removing char from string

    /scan word from file/

    do
    {
    wordscan = fscanf(f, "%s", buffer);
    if (wordscan != EOF)
    {
    if(strstr(buffer, filter))
    {
    temp = buffer;
  6. while ((c = fgetc(f)) != '>') {...

    while ((c = fgetc(f)) != '>')
    {
    sprintf(buffer, "%s");
    validate(buffer);
    if(c == EOF)
    break;
    }

    Thanks....well..this is how I check for EOF, is there any other better way?? This way...
  7. Hi Hammer..... I am not very sure what you are...

    Hi Hammer.....

    I am not very sure what you are trying to tell me :confused:
    because it seems ok when I tested the codes out. It reads anything that is inside the " ". Could you please...
  8. How to convert char read from file into string

    #include <stdio.h>
    #include <errno.h>
    #include <string.h>


    int main(int argc, char **argv)
    {

    FILE *f;
    int c;
Results 1 to 8 of 8