mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support gmd. change work_dir. hourglass. add utilies.
This commit is contained in:
parent
c9b977d337
commit
f1e7e9d933
33 changed files with 702 additions and 73 deletions
16
trunk/research/gperftools/memory.error.notcmalloc.cpp
Normal file
16
trunk/research/gperftools/memory.error.notcmalloc.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
g++ memory.error.notcmalloc.cpp -g -O0 -o memory.error.notcmalloc
|
||||
*/
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void foo(char* p){
|
||||
memcpy(p, "01234567890abcdef", 16);
|
||||
}
|
||||
int main(int argc, char** argv){
|
||||
char* p = new char[10];
|
||||
foo(p);
|
||||
printf("p=%s\n", p);
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue