Search:

Type: Posts; User: Martin Kovac

Search: Search took 0.01 seconds.

  1. Thread: Threads

    by Martin Kovac
    Replies
    2
    Views
    1,321

    Threads

    Hi, I have this code:



    int thread_count = 5;
    pthread_t *thread;
    thread = malloc(thread_count * sizeof(pthread_t));

    for ( i=0; i<thread_count; i++ ) {
  2. Replies
    1
    Views
    2,427

    Read part of file

    Problem is read first n-th part of text file. Is there any function to get character count of file or somethink similar? If the file have 48 characters and I want only first half part of the file the...
  3. Replies
    1
    Views
    1,933

    read from file problem

    Is there any function (Low lewel I/O) which can read some length from file from start position.
    I need some function which Have 4 arguments. First is file descriptor or some pointer to file, second...
  4. Replies
    2
    Views
    1,059

    threads and struct

    This is my whole program:




    #include <stdio.h>
    #include <stdlib.h>
    #include <getopt.h>
    #include <dirent.h>
    #include <pthread.h>
  5. Replies
    1
    Views
    4,234

    problem with compare two characters

    I Have main function:


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

    int count = 0;
    FILE *file_content;
    int ch;

    file_content = fopen(argv[1], "r");
  6. Thread: Pipes

    by Martin Kovac
    Replies
    1
    Views
    2,167

    Pipes

    Hi,

    my program must have 3 commnads as arguments. For example ./program /bin/ls -l /bin/grep pattern /bin/wc -l. This program execute these 3 commands which will be communicate over pipes: first...
  7. Replies
    2
    Views
    1,575

    commands and arguments problem

    Hi,

    I'm new in Cprogramming and have this problem. I want to run my program like ./my_program command1 [args] command2[args] command3 [args]

    for example ./my_program /bin/ps -ef /bin/grep...
Results 1 to 7 of 7