dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
wsti_so.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Again remove not used libraries.
[wsti_so.git]
/
src
/
process3.c
diff --git
a/src/process3.c
b/src/process3.c
index d5be26a12c2088dfe48748cb46ed1785757e5ae1..b2fe61c977e1865ae0941dee874396c81061e9af 100644
(file)
--- a/
src/process3.c
+++ b/
src/process3.c
@@
-1,19
+1,14
@@
#include <stdio.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
/* open/read/write/close */
#include <fcntl.h>
/* open/read/write/close */
#include <fcntl.h>
-/** If buffer is too small to hold entire string, it is incremented by this value */
-#define BUFFER_STEP 16
-
/**
/**
- * Program grabs data
from process1, calculates number of characters in each line
- *
and pass the value to process3
.
+ * Program grabs data
(calculated number of characters) from process2 and prints
+ *
grabbed data to the standard output
.
*/
int main(void) {
*/
int main(void) {
- /** Named pipe used to communicate with process
1
*/
+ /** Named pipe used to communicate with process
2
*/
char * read_pipe = "/tmp/process2pipe";
int read_descriptor;
char * read_pipe = "/tmp/process2pipe";
int read_descriptor;