@enjoys/context-engine 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/data/commands/adb.json +322 -0
  2. package/data/commands/alembic.json +301 -0
  3. package/data/commands/artisan.json +277 -0
  4. package/data/commands/atlas.json +426 -0
  5. package/data/commands/auth0.json +648 -0
  6. package/data/commands/bat.json +84 -0
  7. package/data/commands/btop.json +59 -0
  8. package/data/commands/bundle.json +321 -0
  9. package/data/commands/composer.json +507 -0
  10. package/data/commands/dart.json +216 -0
  11. package/data/commands/dbmate.json +257 -0
  12. package/data/commands/docker-compose.json +384 -0
  13. package/data/commands/drizzle-kit.json +217 -0
  14. package/data/commands/expo.json +65 -0
  15. package/data/commands/fastlane.json +243 -0
  16. package/data/commands/fd.json +86 -0
  17. package/data/commands/flutter.json +298 -0
  18. package/data/commands/flyway.json +261 -0
  19. package/data/commands/fzf.json +103 -0
  20. package/data/commands/gem.json +267 -0
  21. package/data/commands/htop.json +56 -0
  22. package/data/commands/jq.json +100 -0
  23. package/data/commands/k9s.json +62 -0
  24. package/data/commands/linux.json +3007 -0
  25. package/data/commands/liquibase.json +399 -0
  26. package/data/commands/manifest.json +619 -0
  27. package/data/commands/minikube.json +60 -0
  28. package/data/commands/ng.json +64 -0
  29. package/data/commands/nuxt.json +60 -0
  30. package/data/commands/nvim.json +91 -0
  31. package/data/commands/php.json +157 -0
  32. package/data/commands/pm2.json +259 -0
  33. package/data/commands/pod.json +175 -0
  34. package/data/commands/prisma.json +257 -0
  35. package/data/commands/rails.json +372 -0
  36. package/data/commands/rake.json +360 -0
  37. package/data/commands/react-native.json +57 -0
  38. package/data/commands/rg.json +103 -0
  39. package/data/commands/rspec.json +257 -0
  40. package/data/commands/ruby.json +108 -0
  41. package/data/commands/screen.json +101 -0
  42. package/data/commands/sequelize.json +342 -0
  43. package/data/commands/snyk.json +442 -0
  44. package/data/commands/sonar-scanner.json +219 -0
  45. package/data/commands/stripe.json +314 -0
  46. package/data/commands/symfony.json +449 -0
  47. package/data/commands/tmux.json +197 -0
  48. package/data/commands/top.json +61 -0
  49. package/data/commands/trivy.json +367 -0
  50. package/data/commands/twilio.json +382 -0
  51. package/data/commands/typeorm.json +262 -0
  52. package/data/commands/vim.json +85 -0
  53. package/data/commands/vue.json +60 -0
  54. package/data/commands/wp.json +857 -0
  55. package/data/commands/xcodebuild.json +141 -0
  56. package/data/commands/yq.json +57 -0
  57. package/data/completion/bash.json +1184 -0
  58. package/data/completion/c.json +1067 -0
  59. package/data/completion/cpp.json +824 -0
  60. package/data/completion/csharp.json +860 -0
  61. package/data/completion/dockerfile.json +536 -0
  62. package/data/completion/go.json +1346 -0
  63. package/data/completion/html.json +806 -0
  64. package/data/completion/java.json +1112 -0
  65. package/data/completion/javascript.json +914 -0
  66. package/data/completion/lua.json +968 -0
  67. package/data/completion/php.json +1535 -0
  68. package/data/completion/python.json +1427 -0
  69. package/data/completion/ruby.json +1531 -0
  70. package/data/completion/rust.json +698 -0
  71. package/data/completion/sql.json +887 -0
  72. package/data/completion/toml.json +428 -0
  73. package/data/completion/typescript.json +338 -0
  74. package/data/completion/yaml.json +563 -0
  75. package/data/defination/bash.json +565 -0
  76. package/data/defination/c.json +865 -0
  77. package/data/defination/cpp.json +348 -0
  78. package/data/defination/csharp.json +144 -0
  79. package/data/defination/dockerfile.json +113 -0
  80. package/data/defination/go.json +561 -0
  81. package/data/defination/html.json +559 -0
  82. package/data/defination/java.json +184 -0
  83. package/data/defination/javascript.json +265 -0
  84. package/data/defination/lua.json +181 -0
  85. package/data/defination/php.json +726 -0
  86. package/data/defination/python.json +717 -0
  87. package/data/defination/ruby.json +670 -0
  88. package/data/defination/rust.json +207 -0
  89. package/data/defination/sql.json +473 -0
  90. package/data/defination/toml.json +251 -0
  91. package/data/defination/typescript.json +29 -0
  92. package/data/defination/yaml.json +197 -0
  93. package/data/hover/bash.json +245 -0
  94. package/data/hover/c.json +265 -0
  95. package/data/hover/cpp.json +210 -0
  96. package/data/hover/csharp.json +290 -0
  97. package/data/hover/dockerfile.json +145 -0
  98. package/data/hover/go.json +580 -0
  99. package/data/hover/html.json +250 -0
  100. package/data/hover/java.json +395 -0
  101. package/data/hover/javascript.json +330 -0
  102. package/data/hover/lua.json +265 -0
  103. package/data/hover/php.json +300 -0
  104. package/data/hover/python.json +380 -0
  105. package/data/hover/ruby.json +265 -0
  106. package/data/hover/rust.json +275 -0
  107. package/data/hover/sql.json +230 -0
  108. package/data/hover/toml.json +145 -0
  109. package/data/hover/typescript.json +120 -0
  110. package/data/hover/yaml.json +165 -0
  111. package/data/manifest.json +242 -0
  112. package/package.json +1 -1
@@ -0,0 +1,865 @@
1
+ {
2
+ "language": "c",
3
+ "definitions": {
4
+ "printf": {
5
+ "signature": "int printf(const char *format, ...)",
6
+ "description": "Writes formatted output to stdout. Format specifiers: %d (int), %f (double), %s (string), %c (char), %p (pointer), %x (hex), %o (octal), %u (unsigned), %zu (size_t), %ld (long), %lld (long long). Returns the number of characters written, or a negative value on error.",
7
+ "type": "function",
8
+ "module": "stdio.h",
9
+ "members": {}
10
+ },
11
+ "scanf": {
12
+ "signature": "int scanf(const char *format, ...)",
13
+ "description": "Reads formatted input from stdin. Arguments must be pointers (use & for non-pointer types). Returns the number of input items successfully matched and assigned, or EOF on failure.",
14
+ "type": "function",
15
+ "module": "stdio.h",
16
+ "members": {}
17
+ },
18
+ "fprintf": {
19
+ "signature": "int fprintf(FILE *stream, const char *format, ...)",
20
+ "description": "Writes formatted output to the specified file stream. Returns the number of characters written, or a negative value on error.",
21
+ "type": "function",
22
+ "module": "stdio.h",
23
+ "members": {}
24
+ },
25
+ "fscanf": {
26
+ "signature": "int fscanf(FILE *stream, const char *format, ...)",
27
+ "description": "Reads formatted input from the specified file stream. Returns the number of input items successfully matched and assigned.",
28
+ "type": "function",
29
+ "module": "stdio.h",
30
+ "members": {}
31
+ },
32
+ "sprintf": {
33
+ "signature": "int sprintf(char *str, const char *format, ...)",
34
+ "description": "Writes formatted output to a character buffer. Risk of buffer overflow — prefer snprintf. Returns the number of characters written (not including the null terminator).",
35
+ "type": "function",
36
+ "module": "stdio.h",
37
+ "members": {}
38
+ },
39
+ "snprintf": {
40
+ "signature": "int snprintf(char *str, size_t size, const char *format, ...)",
41
+ "description": "Writes at most size-1 formatted characters to str, always null-terminating. Returns the number of characters that would have been written if the buffer were large enough.",
42
+ "type": "function",
43
+ "module": "stdio.h",
44
+ "members": {}
45
+ },
46
+ "fopen": {
47
+ "signature": "FILE *fopen(const char *filename, const char *mode)",
48
+ "description": "Opens a file and returns a FILE pointer. Modes: \"r\" (read), \"w\" (write/truncate), \"a\" (append), \"r+\" (read/write), \"w+\" (read/write/truncate), \"a+\" (read/append). Add \"b\" for binary mode. Returns NULL on failure.",
49
+ "type": "function",
50
+ "module": "stdio.h",
51
+ "members": {}
52
+ },
53
+ "fclose": {
54
+ "signature": "int fclose(FILE *stream)",
55
+ "description": "Closes an open file stream, flushing any unwritten data. Returns 0 on success or EOF on failure.",
56
+ "type": "function",
57
+ "module": "stdio.h",
58
+ "members": {}
59
+ },
60
+ "fread": {
61
+ "signature": "size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream)",
62
+ "description": "Reads up to nmemb elements of the given size from stream into the buffer pointed to by ptr. Returns the number of elements successfully read.",
63
+ "type": "function",
64
+ "module": "stdio.h",
65
+ "members": {}
66
+ },
67
+ "fwrite": {
68
+ "signature": "size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream)",
69
+ "description": "Writes up to nmemb elements of the given size from the buffer pointed to by ptr to stream. Returns the number of elements successfully written.",
70
+ "type": "function",
71
+ "module": "stdio.h",
72
+ "members": {}
73
+ },
74
+ "fgets": {
75
+ "signature": "char *fgets(char *str, int n, FILE *stream)",
76
+ "description": "Reads at most n-1 characters from stream into str, stopping at a newline or EOF. Always null-terminates. Returns str on success, NULL on failure or EOF.",
77
+ "type": "function",
78
+ "module": "stdio.h",
79
+ "members": {}
80
+ },
81
+ "fputs": {
82
+ "signature": "int fputs(const char *str, FILE *stream)",
83
+ "description": "Writes a string to stream (without appending a newline). Returns a non-negative value on success, EOF on error.",
84
+ "type": "function",
85
+ "module": "stdio.h",
86
+ "members": {}
87
+ },
88
+ "fseek": {
89
+ "signature": "int fseek(FILE *stream, long offset, int whence)",
90
+ "description": "Sets the file position indicator. whence can be SEEK_SET (beginning), SEEK_CUR (current), or SEEK_END (end). Returns 0 on success.",
91
+ "type": "function",
92
+ "module": "stdio.h",
93
+ "members": {}
94
+ },
95
+ "ftell": {
96
+ "signature": "long ftell(FILE *stream)",
97
+ "description": "Returns the current file position indicator for stream, or -1L on error.",
98
+ "type": "function",
99
+ "module": "stdio.h",
100
+ "members": {}
101
+ },
102
+ "rewind": {
103
+ "signature": "void rewind(FILE *stream)",
104
+ "description": "Sets the file position to the beginning of the file and clears error indicators.",
105
+ "type": "function",
106
+ "module": "stdio.h",
107
+ "members": {}
108
+ },
109
+ "feof": {
110
+ "signature": "int feof(FILE *stream)",
111
+ "description": "Tests the end-of-file indicator for stream. Returns non-zero if the EOF indicator is set.",
112
+ "type": "function",
113
+ "module": "stdio.h",
114
+ "members": {}
115
+ },
116
+ "fflush": {
117
+ "signature": "int fflush(FILE *stream)",
118
+ "description": "Flushes the output buffer of a stream. If stream is NULL, flushes all open output streams. Returns 0 on success, EOF on error.",
119
+ "type": "function",
120
+ "module": "stdio.h",
121
+ "members": {}
122
+ },
123
+ "perror": {
124
+ "signature": "void perror(const char *s)",
125
+ "description": "Prints a descriptive error message to stderr. The message consists of the string s followed by a colon, a space, and the error message corresponding to the current errno value.",
126
+ "type": "function",
127
+ "module": "stdio.h",
128
+ "members": {}
129
+ },
130
+ "puts": {
131
+ "signature": "int puts(const char *s)",
132
+ "description": "Writes a string to stdout followed by a newline. Returns a non-negative integer on success, EOF on error.",
133
+ "type": "function",
134
+ "module": "stdio.h",
135
+ "members": {}
136
+ },
137
+ "getchar": {
138
+ "signature": "int getchar(void)",
139
+ "description": "Reads the next character from stdin. Returns the character as an unsigned char cast to int, or EOF on end-of-file or error.",
140
+ "type": "function",
141
+ "module": "stdio.h",
142
+ "members": {}
143
+ },
144
+ "putchar": {
145
+ "signature": "int putchar(int c)",
146
+ "description": "Writes a character to stdout. Returns the character written, or EOF on error.",
147
+ "type": "function",
148
+ "module": "stdio.h",
149
+ "members": {}
150
+ },
151
+ "malloc": {
152
+ "signature": "void *malloc(size_t size)",
153
+ "description": "Allocates size bytes of uninitialized memory on the heap. Returns a pointer to the allocated memory, or NULL if allocation fails. The returned pointer must be freed with free().",
154
+ "type": "function",
155
+ "module": "stdlib.h",
156
+ "members": {}
157
+ },
158
+ "calloc": {
159
+ "signature": "void *calloc(size_t nmemb, size_t size)",
160
+ "description": "Allocates memory for an array of nmemb elements, each of size bytes, and initializes all bytes to zero. Returns NULL on failure.",
161
+ "type": "function",
162
+ "module": "stdlib.h",
163
+ "members": {}
164
+ },
165
+ "realloc": {
166
+ "signature": "void *realloc(void *ptr, size_t size)",
167
+ "description": "Resizes the memory block pointed to by ptr to size bytes. If ptr is NULL, equivalent to malloc(size). If size is 0, equivalent to free(ptr). Returns the new pointer (may differ from ptr), or NULL on failure.",
168
+ "type": "function",
169
+ "module": "stdlib.h",
170
+ "members": {}
171
+ },
172
+ "free": {
173
+ "signature": "void free(void *ptr)",
174
+ "description": "Deallocates memory previously allocated by malloc, calloc, or realloc. Passing NULL is safe and does nothing. Double-free causes undefined behavior.",
175
+ "type": "function",
176
+ "module": "stdlib.h",
177
+ "members": {}
178
+ },
179
+ "exit": {
180
+ "signature": "void exit(int status)",
181
+ "description": "Terminates the calling process. Calls atexit-registered functions and flushes/closes all open streams. Use EXIT_SUCCESS (0) or EXIT_FAILURE (1) as status.",
182
+ "type": "function",
183
+ "module": "stdlib.h",
184
+ "members": {}
185
+ },
186
+ "abort": {
187
+ "signature": "void abort(void)",
188
+ "description": "Causes abnormal program termination by raising SIGABRT. Does not call atexit handlers or flush streams.",
189
+ "type": "function",
190
+ "module": "stdlib.h",
191
+ "members": {}
192
+ },
193
+ "atoi": {
194
+ "signature": "int atoi(const char *nptr)",
195
+ "description": "Converts a string to an integer. Skips leading whitespace, reads an optional sign and digits. No error detection — prefer strtol for robust parsing.",
196
+ "type": "function",
197
+ "module": "stdlib.h",
198
+ "members": {}
199
+ },
200
+ "atof": {
201
+ "signature": "double atof(const char *nptr)",
202
+ "description": "Converts a string to a double. Equivalent to strtod(nptr, NULL). No error detection — prefer strtod for robust parsing.",
203
+ "type": "function",
204
+ "module": "stdlib.h",
205
+ "members": {}
206
+ },
207
+ "strtol": {
208
+ "signature": "long strtol(const char *nptr, char **endptr, int base)",
209
+ "description": "Converts a string to a long integer with the given base (0 for auto-detect, 2–36). Sets *endptr to the first unconverted character. Sets errno to ERANGE on overflow.",
210
+ "type": "function",
211
+ "module": "stdlib.h",
212
+ "members": {}
213
+ },
214
+ "strtod": {
215
+ "signature": "double strtod(const char *nptr, char **endptr)",
216
+ "description": "Converts a string to a double. Sets *endptr to the first unconverted character. Sets errno to ERANGE for overflow/underflow.",
217
+ "type": "function",
218
+ "module": "stdlib.h",
219
+ "members": {}
220
+ },
221
+ "rand": {
222
+ "signature": "int rand(void)",
223
+ "description": "Returns a pseudo-random integer in the range [0, RAND_MAX]. Seed with srand() for different sequences. Not thread-safe — use rand_r or platform-specific alternatives.",
224
+ "type": "function",
225
+ "module": "stdlib.h",
226
+ "members": {}
227
+ },
228
+ "srand": {
229
+ "signature": "void srand(unsigned int seed)",
230
+ "description": "Seeds the pseudo-random number generator used by rand(). Using the same seed produces the same sequence. Common pattern: srand(time(NULL)).",
231
+ "type": "function",
232
+ "module": "stdlib.h",
233
+ "members": {}
234
+ },
235
+ "qsort": {
236
+ "signature": "void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *))",
237
+ "description": "Sorts an array of nmemb elements, each of size bytes, using the comparison function compar. The comparison function should return <0, 0, or >0.",
238
+ "type": "function",
239
+ "module": "stdlib.h",
240
+ "members": {}
241
+ },
242
+ "bsearch": {
243
+ "signature": "void *bsearch(const void *key, const void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *))",
244
+ "description": "Searches a sorted array of nmemb elements for key using binary search. Returns a pointer to the matching element, or NULL if not found.",
245
+ "type": "function",
246
+ "module": "stdlib.h",
247
+ "members": {}
248
+ },
249
+ "abs": {
250
+ "signature": "int abs(int j)",
251
+ "description": "Returns the absolute value of an integer. For long values use labs(), for long long use llabs(), for floating-point use fabs().",
252
+ "type": "function",
253
+ "module": "stdlib.h",
254
+ "members": {}
255
+ },
256
+ "system": {
257
+ "signature": "int system(const char *command)",
258
+ "description": "Passes the command string to the host command processor. Returns implementation-defined status. If command is NULL, returns non-zero if a command processor is available.",
259
+ "type": "function",
260
+ "module": "stdlib.h",
261
+ "members": {}
262
+ },
263
+ "getenv": {
264
+ "signature": "char *getenv(const char *name)",
265
+ "description": "Returns a pointer to the value of the environment variable name, or NULL if not found. The returned string should not be modified.",
266
+ "type": "function",
267
+ "module": "stdlib.h",
268
+ "members": {}
269
+ },
270
+ "strlen": {
271
+ "signature": "size_t strlen(const char *s)",
272
+ "description": "Returns the number of characters in the string s, not including the terminating null byte.",
273
+ "type": "function",
274
+ "module": "string.h",
275
+ "members": {}
276
+ },
277
+ "strcpy": {
278
+ "signature": "char *strcpy(char *dest, const char *src)",
279
+ "description": "Copies the string src including the null terminator to dest. The destination must be large enough. Unsafe — prefer strncpy or snprintf to prevent buffer overflow.",
280
+ "type": "function",
281
+ "module": "string.h",
282
+ "members": {}
283
+ },
284
+ "strncpy": {
285
+ "signature": "char *strncpy(char *dest, const char *src, size_t n)",
286
+ "description": "Copies up to n characters from src to dest. If src is shorter than n, the remainder is padded with null bytes. Warning: may not null-terminate if src has n or more characters.",
287
+ "type": "function",
288
+ "module": "string.h",
289
+ "members": {}
290
+ },
291
+ "strcat": {
292
+ "signature": "char *strcat(char *dest, const char *src)",
293
+ "description": "Appends the string src to the end of dest. The destination must have enough space. Unsafe — prefer strncat.",
294
+ "type": "function",
295
+ "module": "string.h",
296
+ "members": {}
297
+ },
298
+ "strncat": {
299
+ "signature": "char *strncat(char *dest, const char *src, size_t n)",
300
+ "description": "Appends at most n characters from src to dest, then appends a null terminator. The destination must have enough space for the result.",
301
+ "type": "function",
302
+ "module": "string.h",
303
+ "members": {}
304
+ },
305
+ "strcmp": {
306
+ "signature": "int strcmp(const char *s1, const char *s2)",
307
+ "description": "Compares two strings lexicographically. Returns 0 if equal, a negative value if s1 < s2, or a positive value if s1 > s2.",
308
+ "type": "function",
309
+ "module": "string.h",
310
+ "members": {}
311
+ },
312
+ "strncmp": {
313
+ "signature": "int strncmp(const char *s1, const char *s2, size_t n)",
314
+ "description": "Compares up to n characters of two strings. Returns 0 if the first n characters are equal.",
315
+ "type": "function",
316
+ "module": "string.h",
317
+ "members": {}
318
+ },
319
+ "strchr": {
320
+ "signature": "char *strchr(const char *s, int c)",
321
+ "description": "Returns a pointer to the first occurrence of character c in string s, or NULL if not found. The terminating null byte is considered part of the string.",
322
+ "type": "function",
323
+ "module": "string.h",
324
+ "members": {}
325
+ },
326
+ "strrchr": {
327
+ "signature": "char *strrchr(const char *s, int c)",
328
+ "description": "Returns a pointer to the last occurrence of character c in string s, or NULL if not found.",
329
+ "type": "function",
330
+ "module": "string.h",
331
+ "members": {}
332
+ },
333
+ "strstr": {
334
+ "signature": "char *strstr(const char *haystack, const char *needle)",
335
+ "description": "Finds the first occurrence of the substring needle in the string haystack. Returns a pointer to the beginning of the match, or NULL if not found.",
336
+ "type": "function",
337
+ "module": "string.h",
338
+ "members": {}
339
+ },
340
+ "strtok": {
341
+ "signature": "char *strtok(char *str, const char *delim)",
342
+ "description": "Splits a string into tokens. The first call takes the string; subsequent calls with NULL continue tokenizing. Modifies the original string. Not thread-safe — use strtok_r instead.",
343
+ "type": "function",
344
+ "module": "string.h",
345
+ "members": {}
346
+ },
347
+ "memcpy": {
348
+ "signature": "void *memcpy(void *dest, const void *src, size_t n)",
349
+ "description": "Copies n bytes from src to dest. The memory regions must not overlap — use memmove for overlapping regions. Returns dest.",
350
+ "type": "function",
351
+ "module": "string.h",
352
+ "members": {}
353
+ },
354
+ "memmove": {
355
+ "signature": "void *memmove(void *dest, const void *src, size_t n)",
356
+ "description": "Copies n bytes from src to dest, correctly handling overlapping memory regions. Returns dest.",
357
+ "type": "function",
358
+ "module": "string.h",
359
+ "members": {}
360
+ },
361
+ "memset": {
362
+ "signature": "void *memset(void *s, int c, size_t n)",
363
+ "description": "Fills the first n bytes of the memory area pointed to by s with the byte value c. Returns s. Commonly used to zero-initialize buffers.",
364
+ "type": "function",
365
+ "module": "string.h",
366
+ "members": {}
367
+ },
368
+ "memcmp": {
369
+ "signature": "int memcmp(const void *s1, const void *s2, size_t n)",
370
+ "description": "Compares the first n bytes of two memory areas. Returns 0 if equal, a negative value if s1 < s2, or a positive value if s1 > s2.",
371
+ "type": "function",
372
+ "module": "string.h",
373
+ "members": {}
374
+ },
375
+ "sqrt": {
376
+ "signature": "double sqrt(double x)",
377
+ "description": "Computes the non-negative square root of x. Domain error if x is negative. Link with -lm.",
378
+ "type": "function",
379
+ "module": "math.h",
380
+ "members": {}
381
+ },
382
+ "pow": {
383
+ "signature": "double pow(double base, double exp)",
384
+ "description": "Computes base raised to the power exp. Domain error if base is negative and exp is not an integer. Link with -lm.",
385
+ "type": "function",
386
+ "module": "math.h",
387
+ "members": {}
388
+ },
389
+ "fabs": {
390
+ "signature": "double fabs(double x)",
391
+ "description": "Returns the absolute value of the floating-point number x.",
392
+ "type": "function",
393
+ "module": "math.h",
394
+ "members": {}
395
+ },
396
+ "ceil": {
397
+ "signature": "double ceil(double x)",
398
+ "description": "Returns the smallest integer value not less than x (round up toward positive infinity).",
399
+ "type": "function",
400
+ "module": "math.h",
401
+ "members": {}
402
+ },
403
+ "floor": {
404
+ "signature": "double floor(double x)",
405
+ "description": "Returns the largest integer value not greater than x (round down toward negative infinity).",
406
+ "type": "function",
407
+ "module": "math.h",
408
+ "members": {}
409
+ },
410
+ "round": {
411
+ "signature": "double round(double x)",
412
+ "description": "Rounds x to the nearest integer, halfway cases away from zero. C99.",
413
+ "type": "function",
414
+ "module": "math.h",
415
+ "members": {}
416
+ },
417
+ "sin": {
418
+ "signature": "double sin(double x)",
419
+ "description": "Computes the sine of x, where x is in radians.",
420
+ "type": "function",
421
+ "module": "math.h",
422
+ "members": {}
423
+ },
424
+ "cos": {
425
+ "signature": "double cos(double x)",
426
+ "description": "Computes the cosine of x, where x is in radians.",
427
+ "type": "function",
428
+ "module": "math.h",
429
+ "members": {}
430
+ },
431
+ "tan": {
432
+ "signature": "double tan(double x)",
433
+ "description": "Computes the tangent of x, where x is in radians.",
434
+ "type": "function",
435
+ "module": "math.h",
436
+ "members": {}
437
+ },
438
+ "log": {
439
+ "signature": "double log(double x)",
440
+ "description": "Computes the natural (base-e) logarithm of x. Domain error if x is negative; pole error if x is zero.",
441
+ "type": "function",
442
+ "module": "math.h",
443
+ "members": {}
444
+ },
445
+ "log10": {
446
+ "signature": "double log10(double x)",
447
+ "description": "Computes the base-10 logarithm of x. Domain error if x is negative; pole error if x is zero.",
448
+ "type": "function",
449
+ "module": "math.h",
450
+ "members": {}
451
+ },
452
+ "exp": {
453
+ "signature": "double exp(double x)",
454
+ "description": "Computes e raised to the power x. Range error on overflow.",
455
+ "type": "function",
456
+ "module": "math.h",
457
+ "members": {}
458
+ },
459
+ "asin": {
460
+ "signature": "double asin(double x)",
461
+ "description": "Computes the arc sine of x. The result is in the range [-pi/2, pi/2]. Domain error if x is outside [-1, 1].",
462
+ "type": "function",
463
+ "module": "math.h",
464
+ "members": {}
465
+ },
466
+ "acos": {
467
+ "signature": "double acos(double x)",
468
+ "description": "Computes the arc cosine of x. The result is in the range [0, pi]. Domain error if x is outside [-1, 1].",
469
+ "type": "function",
470
+ "module": "math.h",
471
+ "members": {}
472
+ },
473
+ "atan": {
474
+ "signature": "double atan(double x)",
475
+ "description": "Computes the arc tangent of x. The result is in the range [-pi/2, pi/2].",
476
+ "type": "function",
477
+ "module": "math.h",
478
+ "members": {}
479
+ },
480
+ "atan2": {
481
+ "signature": "double atan2(double y, double x)",
482
+ "description": "Computes the arc tangent of y/x, using the signs of both arguments to determine the quadrant. The result is in the range [-pi, pi].",
483
+ "type": "function",
484
+ "module": "math.h",
485
+ "members": {}
486
+ },
487
+ "isalpha": {
488
+ "signature": "int isalpha(int c)",
489
+ "description": "Tests whether c is an alphabetic character (a-z, A-Z). Returns non-zero if true, 0 if false.",
490
+ "type": "function",
491
+ "module": "ctype.h",
492
+ "members": {}
493
+ },
494
+ "isdigit": {
495
+ "signature": "int isdigit(int c)",
496
+ "description": "Tests whether c is a decimal digit (0-9). Returns non-zero if true, 0 if false.",
497
+ "type": "function",
498
+ "module": "ctype.h",
499
+ "members": {}
500
+ },
501
+ "isalnum": {
502
+ "signature": "int isalnum(int c)",
503
+ "description": "Tests whether c is alphanumeric (letter or digit). Returns non-zero if true, 0 if false.",
504
+ "type": "function",
505
+ "module": "ctype.h",
506
+ "members": {}
507
+ },
508
+ "isspace": {
509
+ "signature": "int isspace(int c)",
510
+ "description": "Tests whether c is a whitespace character (space, tab, newline, etc.). Returns non-zero if true, 0 if false.",
511
+ "type": "function",
512
+ "module": "ctype.h",
513
+ "members": {}
514
+ },
515
+ "isupper": {
516
+ "signature": "int isupper(int c)",
517
+ "description": "Tests whether c is an uppercase letter (A-Z). Returns non-zero if true, 0 if false.",
518
+ "type": "function",
519
+ "module": "ctype.h",
520
+ "members": {}
521
+ },
522
+ "islower": {
523
+ "signature": "int islower(int c)",
524
+ "description": "Tests whether c is a lowercase letter (a-z). Returns non-zero if true, 0 if false.",
525
+ "type": "function",
526
+ "module": "ctype.h",
527
+ "members": {}
528
+ },
529
+ "toupper": {
530
+ "signature": "int toupper(int c)",
531
+ "description": "Converts a lowercase letter to uppercase. If c is not a lowercase letter, it is returned unchanged.",
532
+ "type": "function",
533
+ "module": "ctype.h",
534
+ "members": {}
535
+ },
536
+ "tolower": {
537
+ "signature": "int tolower(int c)",
538
+ "description": "Converts an uppercase letter to lowercase. If c is not an uppercase letter, it is returned unchanged.",
539
+ "type": "function",
540
+ "module": "ctype.h",
541
+ "members": {}
542
+ },
543
+ "isprint": {
544
+ "signature": "int isprint(int c)",
545
+ "description": "Tests whether c is a printable character, including space. Returns non-zero if true, 0 if false.",
546
+ "type": "function",
547
+ "module": "ctype.h",
548
+ "members": {}
549
+ },
550
+ "ispunct": {
551
+ "signature": "int ispunct(int c)",
552
+ "description": "Tests whether c is a punctuation character (printable, not space, not alphanumeric). Returns non-zero if true, 0 if false.",
553
+ "type": "function",
554
+ "module": "ctype.h",
555
+ "members": {}
556
+ },
557
+ "time": {
558
+ "signature": "time_t time(time_t *tloc)",
559
+ "description": "Returns the current calendar time as a time_t value, or (time_t)-1 on error. If tloc is not NULL, the return value is also stored at *tloc.",
560
+ "type": "function",
561
+ "module": "time.h",
562
+ "members": {}
563
+ },
564
+ "clock": {
565
+ "signature": "clock_t clock(void)",
566
+ "description": "Returns the processor time consumed by the program so far, or (clock_t)-1 if unavailable. Divide by CLOCKS_PER_SEC to get seconds.",
567
+ "type": "function",
568
+ "module": "time.h",
569
+ "members": {}
570
+ },
571
+ "difftime": {
572
+ "signature": "double difftime(time_t time1, time_t time0)",
573
+ "description": "Returns the difference between two time_t values (time1 - time0) as a double in seconds.",
574
+ "type": "function",
575
+ "module": "time.h",
576
+ "members": {}
577
+ },
578
+ "mktime": {
579
+ "signature": "time_t mktime(struct tm *timeptr)",
580
+ "description": "Converts a broken-down time (struct tm) to a time_t calendar time. Normalizes the fields of timeptr. Returns (time_t)-1 on error.",
581
+ "type": "function",
582
+ "module": "time.h",
583
+ "members": {}
584
+ },
585
+ "localtime": {
586
+ "signature": "struct tm *localtime(const time_t *timep)",
587
+ "description": "Converts a time_t value to a broken-down time in the local timezone. Returns a pointer to a static struct tm (not thread-safe — use localtime_r).",
588
+ "type": "function",
589
+ "module": "time.h",
590
+ "members": {}
591
+ },
592
+ "gmtime": {
593
+ "signature": "struct tm *gmtime(const time_t *timep)",
594
+ "description": "Converts a time_t value to a broken-down time in UTC. Returns a pointer to a static struct tm (not thread-safe — use gmtime_r).",
595
+ "type": "function",
596
+ "module": "time.h",
597
+ "members": {}
598
+ },
599
+ "strftime": {
600
+ "signature": "size_t strftime(char *s, size_t max, const char *format, const struct tm *tm)",
601
+ "description": "Formats a broken-down time according to the format string. Format specifiers: %Y (year), %m (month), %d (day), %H (hour), %M (minute), %S (second), %A (weekday name), etc.",
602
+ "type": "function",
603
+ "module": "time.h",
604
+ "members": {}
605
+ },
606
+ "ctime": {
607
+ "signature": "char *ctime(const time_t *timep)",
608
+ "description": "Converts a time_t value to a human-readable string in the form \"Wed Jun 30 21:49:08 1993\\n\". Returns a pointer to a static buffer.",
609
+ "type": "function",
610
+ "module": "time.h",
611
+ "members": {}
612
+ },
613
+ "signal": {
614
+ "signature": "void (*signal(int signum, void (*handler)(int)))(int)",
615
+ "description": "Sets the disposition of signal signum to handler: SIG_DFL (default), SIG_IGN (ignore), or a custom function. Returns the previous handler, or SIG_ERR on error.",
616
+ "type": "function",
617
+ "module": "signal.h",
618
+ "members": {}
619
+ },
620
+ "raise": {
621
+ "signature": "int raise(int sig)",
622
+ "description": "Sends signal sig to the calling process. Returns 0 on success, non-zero on failure. Common signals: SIGINT, SIGTERM, SIGABRT, SIGSEGV.",
623
+ "type": "function",
624
+ "module": "signal.h",
625
+ "members": {}
626
+ },
627
+ "assert": {
628
+ "signature": "void assert(scalar expression)",
629
+ "description": "Macro that aborts the program with a diagnostic message if the expression evaluates to 0 (false). Disabled when NDEBUG is defined.",
630
+ "type": "function",
631
+ "module": "assert.h",
632
+ "members": {}
633
+ },
634
+ "errno": {
635
+ "signature": "int errno",
636
+ "description": "Thread-local error number variable set by system calls and library functions on error. Common values: EACCES (permission denied), ENOENT (no such file), ENOMEM (out of memory), EINVAL (invalid argument).",
637
+ "type": "variable",
638
+ "module": "errno.h",
639
+ "members": {}
640
+ },
641
+ "strerror": {
642
+ "signature": "char *strerror(int errnum)",
643
+ "description": "Returns a pointer to a string describing the error code errnum. The returned string should not be modified.",
644
+ "type": "function",
645
+ "module": "string.h",
646
+ "members": {}
647
+ },
648
+ "FILE": {
649
+ "signature": "typedef struct _IO_FILE FILE",
650
+ "description": "Opaque type representing a file stream. Used with all stdio.h file I/O functions. Standard streams: stdin, stdout, stderr.",
651
+ "type": "type",
652
+ "module": "stdio.h",
653
+ "members": {}
654
+ },
655
+ "size_t": {
656
+ "signature": "typedef unsigned long size_t",
657
+ "description": "Unsigned integer type returned by sizeof and used for memory sizes and counts throughout the standard library. Guaranteed to hold the size of any object.",
658
+ "type": "type",
659
+ "module": "stddef.h",
660
+ "members": {}
661
+ },
662
+ "ptrdiff_t": {
663
+ "signature": "typedef long ptrdiff_t",
664
+ "description": "Signed integer type representing the difference between two pointers. Result of subtracting one pointer from another.",
665
+ "type": "type",
666
+ "module": "stddef.h",
667
+ "members": {}
668
+ },
669
+ "int8_t": {
670
+ "signature": "typedef signed char int8_t",
671
+ "description": "Exact-width signed 8-bit integer type. Range: -128 to 127.",
672
+ "type": "type",
673
+ "module": "stdint.h",
674
+ "members": {}
675
+ },
676
+ "uint8_t": {
677
+ "signature": "typedef unsigned char uint8_t",
678
+ "description": "Exact-width unsigned 8-bit integer type. Range: 0 to 255.",
679
+ "type": "type",
680
+ "module": "stdint.h",
681
+ "members": {}
682
+ },
683
+ "int16_t": {
684
+ "signature": "typedef short int16_t",
685
+ "description": "Exact-width signed 16-bit integer type. Range: -32768 to 32767.",
686
+ "type": "type",
687
+ "module": "stdint.h",
688
+ "members": {}
689
+ },
690
+ "uint16_t": {
691
+ "signature": "typedef unsigned short uint16_t",
692
+ "description": "Exact-width unsigned 16-bit integer type. Range: 0 to 65535.",
693
+ "type": "type",
694
+ "module": "stdint.h",
695
+ "members": {}
696
+ },
697
+ "int32_t": {
698
+ "signature": "typedef int int32_t",
699
+ "description": "Exact-width signed 32-bit integer type. Range: -2147483648 to 2147483647.",
700
+ "type": "type",
701
+ "module": "stdint.h",
702
+ "members": {}
703
+ },
704
+ "uint32_t": {
705
+ "signature": "typedef unsigned int uint32_t",
706
+ "description": "Exact-width unsigned 32-bit integer type. Range: 0 to 4294967295.",
707
+ "type": "type",
708
+ "module": "stdint.h",
709
+ "members": {}
710
+ },
711
+ "int64_t": {
712
+ "signature": "typedef long long int64_t",
713
+ "description": "Exact-width signed 64-bit integer type. Range: -9223372036854775808 to 9223372036854775807.",
714
+ "type": "type",
715
+ "module": "stdint.h",
716
+ "members": {}
717
+ },
718
+ "uint64_t": {
719
+ "signature": "typedef unsigned long long uint64_t",
720
+ "description": "Exact-width unsigned 64-bit integer type. Range: 0 to 18446744073709551615.",
721
+ "type": "type",
722
+ "module": "stdint.h",
723
+ "members": {}
724
+ },
725
+ "intptr_t": {
726
+ "signature": "typedef long intptr_t",
727
+ "description": "Signed integer type capable of holding a pointer value. Can safely cast a void* to intptr_t and back.",
728
+ "type": "type",
729
+ "module": "stdint.h",
730
+ "members": {}
731
+ },
732
+ "uintptr_t": {
733
+ "signature": "typedef unsigned long uintptr_t",
734
+ "description": "Unsigned integer type capable of holding a pointer value. Can safely cast a void* to uintptr_t and back.",
735
+ "type": "type",
736
+ "module": "stdint.h",
737
+ "members": {}
738
+ },
739
+ "time_t": {
740
+ "signature": "typedef long time_t",
741
+ "description": "Arithmetic type representing calendar time. Typically the number of seconds since the Unix epoch (1970-01-01 00:00:00 UTC).",
742
+ "type": "type",
743
+ "module": "time.h",
744
+ "members": {}
745
+ },
746
+ "clock_t": {
747
+ "signature": "typedef long clock_t",
748
+ "description": "Arithmetic type representing processor time. Divide by CLOCKS_PER_SEC to convert to seconds.",
749
+ "type": "type",
750
+ "module": "time.h",
751
+ "members": {}
752
+ },
753
+ "struct tm": {
754
+ "signature": "struct tm",
755
+ "description": "Broken-down time structure representing calendar date and time components.",
756
+ "type": "type",
757
+ "module": "time.h",
758
+ "members": {
759
+ "tm_sec": { "type": "int", "description": "Seconds after the minute [0, 60] (60 for leap second)" },
760
+ "tm_min": { "type": "int", "description": "Minutes after the hour [0, 59]" },
761
+ "tm_hour": { "type": "int", "description": "Hours since midnight [0, 23]" },
762
+ "tm_mday": { "type": "int", "description": "Day of the month [1, 31]" },
763
+ "tm_mon": { "type": "int", "description": "Months since January [0, 11]" },
764
+ "tm_year": { "type": "int", "description": "Years since 1900" },
765
+ "tm_wday": { "type": "int", "description": "Days since Sunday [0, 6]" },
766
+ "tm_yday": { "type": "int", "description": "Days since January 1 [0, 365]" },
767
+ "tm_isdst": { "type": "int", "description": "Daylight saving time flag (>0 if DST, 0 if not, <0 if unknown)" }
768
+ }
769
+ },
770
+ "div_t": {
771
+ "signature": "typedef struct { int quot; int rem; } div_t",
772
+ "description": "Structure returned by div() containing the quotient and remainder of integer division.",
773
+ "type": "type",
774
+ "module": "stdlib.h",
775
+ "members": {
776
+ "quot": { "type": "int", "description": "Quotient of the division" },
777
+ "rem": { "type": "int", "description": "Remainder of the division" }
778
+ }
779
+ },
780
+ "NULL": {
781
+ "signature": "#define NULL ((void *)0)",
782
+ "description": "Null pointer constant. Defined in stddef.h, stdio.h, stdlib.h, string.h and other headers. Tests for a null pointer: if (ptr == NULL) or if (!ptr).",
783
+ "type": "macro",
784
+ "module": "stddef.h",
785
+ "members": {}
786
+ },
787
+ "EOF": {
788
+ "signature": "#define EOF (-1)",
789
+ "description": "End-of-file indicator, a negative integer constant (typically -1). Returned by character input functions to indicate end of input or error.",
790
+ "type": "macro",
791
+ "module": "stdio.h",
792
+ "members": {}
793
+ },
794
+ "SEEK_SET": {
795
+ "signature": "#define SEEK_SET 0",
796
+ "description": "File position constant for fseek: offset is relative to the beginning of the file.",
797
+ "type": "macro",
798
+ "module": "stdio.h",
799
+ "members": {}
800
+ },
801
+ "SEEK_CUR": {
802
+ "signature": "#define SEEK_CUR 1",
803
+ "description": "File position constant for fseek: offset is relative to the current position.",
804
+ "type": "macro",
805
+ "module": "stdio.h",
806
+ "members": {}
807
+ },
808
+ "SEEK_END": {
809
+ "signature": "#define SEEK_END 2",
810
+ "description": "File position constant for fseek: offset is relative to the end of the file.",
811
+ "type": "macro",
812
+ "module": "stdio.h",
813
+ "members": {}
814
+ },
815
+ "EXIT_SUCCESS": {
816
+ "signature": "#define EXIT_SUCCESS 0",
817
+ "description": "Indicates successful program termination. Passed to exit() or returned from main().",
818
+ "type": "macro",
819
+ "module": "stdlib.h",
820
+ "members": {}
821
+ },
822
+ "EXIT_FAILURE": {
823
+ "signature": "#define EXIT_FAILURE 1",
824
+ "description": "Indicates unsuccessful program termination. Passed to exit() or returned from main().",
825
+ "type": "macro",
826
+ "module": "stdlib.h",
827
+ "members": {}
828
+ },
829
+ "RAND_MAX": {
830
+ "signature": "#define RAND_MAX 2147483647",
831
+ "description": "The maximum value returned by rand(). At least 32767.",
832
+ "type": "macro",
833
+ "module": "stdlib.h",
834
+ "members": {}
835
+ },
836
+ "BUFSIZ": {
837
+ "signature": "#define BUFSIZ 8192",
838
+ "description": "Default buffer size for setbuf. Typically 512 or 8192 bytes.",
839
+ "type": "macro",
840
+ "module": "stdio.h",
841
+ "members": {}
842
+ },
843
+ "stdin": {
844
+ "signature": "extern FILE *stdin",
845
+ "description": "Standard input stream. Connected to keyboard input by default.",
846
+ "type": "variable",
847
+ "module": "stdio.h",
848
+ "members": {}
849
+ },
850
+ "stdout": {
851
+ "signature": "extern FILE *stdout",
852
+ "description": "Standard output stream. Connected to terminal output by default. Line-buffered when connected to a terminal.",
853
+ "type": "variable",
854
+ "module": "stdio.h",
855
+ "members": {}
856
+ },
857
+ "stderr": {
858
+ "signature": "extern FILE *stderr",
859
+ "description": "Standard error stream. Connected to terminal output by default. Unbuffered for immediate error reporting.",
860
+ "type": "variable",
861
+ "module": "stdio.h",
862
+ "members": {}
863
+ }
864
+ }
865
+ }