Hi guys!
I'll simplify my problem.
Hey,
I tried searching and this is what I have written from many sources put together.
Code:
#include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
#include <string.h>
#define LEN 512
int main()
{
char buffer[LEN];
int fd[2];
pipe(fd);
Guys, I have the following code
Code:
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <unistd.h>
void read2();
main(int argc, char** argv)
{
int pid,status;
pid=fork();
if ( pid == 0 )
{
read2(argv[1], argv[2]);
I have been working with GTK and feel bad about the way I am passing arguments to callback functions.
how can i send an integer via message queue?
i try this, but it doesn't work, child process receive 13345943 instead of 5
Code:
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/msg.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <errno.h>
#include <unistd.h>
#include <wait.h>
#include <mqueue.
To start off with this is a homework assignment for my Operating Systems course and I am stumped.
The prof wants us to read in a source code file and take out all the comment lines and then output the file back into a new source code file.
hello
i have made a small program to find the md5 checksum of a string.i am using xshell to compile the program.
Code:
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <md5.h>
int main(int argc, char * argv) {
MD5_CTX context;
Code of baul :)
Code:
/*
* Hanx [Proyecto Fedora Peru] wth Code
* crc.c - app
*
* This program is private version, for anti-educational purposes and without any
* explicit or implicit warranty; in no event shall the author or
* contributors be liable for any direct, indirect or incidetal damages
Hi guys,
I need to write a script so that when i execute the "rm" command, the file mentioned need to be copied to other folder and then be deleted. this should be done in back ground. can you please help me out??
I have written a code in c for this but i dont have C compiler and i dont have admin rights to install too.