13 lines
339 B
C
13 lines
339 B
C
#include <stdio.h>
|
||
#include <stdlib.h>
|
||
#include <sys/types.h>
|
||
#include <unistd.h>
|
||
void printchar(char c) { write(1, &c, 1);
|
||
}
|
||
int main() {
|
||
// Пишет символ 'c' в стандартный вывод
|
||
printchar('A'); // Bыbodum сuмbол do fork()
|
||
fork(); // Создается новый процесс
|
||
printchar('B');
|
||
return 0;
|
||
} |