ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
manpage.c File Reference

Manpage resource stubs for WASM (not needed for mirror mode) More...

Go to the source code of this file.

Functions

int get_manpage_template (FILE **out_file, const char **out_content, size_t *out_len)
 
int get_manpage_content (FILE **out_file, const char **out_content, size_t *out_len)
 
void release_manpage_resources (FILE *file)
 

Detailed Description

Manpage resource stubs for WASM (not needed for mirror mode)

Definition in file platform/wasm/stubs/manpage.c.

Function Documentation

◆ get_manpage_content()

int get_manpage_content ( FILE **  out_file,
const char **  out_content,
size_t *  out_len 
)

Definition at line 28 of file platform/wasm/stubs/manpage.c.

28 {
29 if (!out_file || !out_content || !out_len) {
30 return -1;
31 }
32
33 // Return embedded empty string (WASM doesn't support man pages)
34 *out_file = NULL;
35 *out_content = empty_manpage;
36 *out_len = empty_manpage_len;
37 return 0;
38}

◆ get_manpage_template()

int get_manpage_template ( FILE **  out_file,
const char **  out_content,
size_t *  out_len 
)

Definition at line 15 of file platform/wasm/stubs/manpage.c.

15 {
16 if (!out_file || !out_content || !out_len) {
17 return -1;
18 }
19
20 // Return embedded empty string (WASM doesn't support man pages)
21 *out_file = NULL;
22 *out_content = empty_manpage;
23 *out_len = empty_manpage_len;
24 return 0;
25}

◆ release_manpage_resources()

void release_manpage_resources ( FILE *  file)

Definition at line 40 of file platform/wasm/stubs/manpage.c.

40 {
41 if (file) {
42 fclose(file);
43 }
44}