source:
tags/unix/20081113/malloc.c
@
216
Last change on this file since 216 was 192, checked in by nanardon, 16 years ago | |
---|---|
|
|
File size: 201 bytes |
Line | |
---|---|
1 | #include <stdlib.h> |
2 | #include <sdtio.h> |
3 | int main(void) { |
4 | char * buf = malloc(1000000000); |
5 | system("ps aux | grep malloc"); |
6 | memset(buf, 'X', 1000000000); |
7 | system("ps aux | grep malloc"); |
8 | } |
Note: See TracBrowser
for help on using the repository browser.