Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emscripten-core/emscripten
/ malloc
Function
malloc
test/core/test_dlmalloc_partial_2.c:12–12 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
#include <emscripten/console.h>
11
12
void *malloc(size_t size) { return (void *)123; }
13
int main() {
14
void *x = malloc(10);
15
emscripten_outf(
"got %p"
, x);
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected