repositories
/
TD_SE.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Coding styles fixes.
[TD_SE.git]
/
thread-pid
/
thread-pid.c
diff --git
a/thread-pid/thread-pid.c
b/thread-pid/thread-pid.c
index a993c777d5a11766f3f8ba3c3482be840e1bc6f2..648cd82c33ba39f0b64ac3a00a9a5754dde36bd5 100644
(file)
--- a/
thread-pid/thread-pid.c
+++ b/
thread-pid/thread-pid.c
@@
-4,7
+4,7
@@
static void* fonction(void* args) {
printf("pid du thread fils = %d\n", getpid());
static void* fonction(void* args) {
printf("pid du thread fils = %d\n", getpid());
- while(1); // forever
+ while
(1); // forever
return NULL;
}
return NULL;
}
@@
-13,6
+13,6
@@
int main() {
printf("pid de main = %d\n", getpid());
pthread_create(&thread, NULL, &fonction, NULL);
printf("pid de main = %d\n", getpid());
pthread_create(&thread, NULL, &fonction, NULL);
- while(1); // forever
+ while
(1); // forever
return 0;
}
return 0;
}