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++ ) {
Type: Posts; User: Martin Kovac
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++ ) {
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...
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...
This is my whole program:
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <dirent.h>
#include <pthread.h>
I Have main function:
int main(int argc, char *argv[]) {
int count = 0;
FILE *file_content;
int ch;
file_content = fopen(argv[1], "r");
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...
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...