id
stringlengths
21
132
codebase
stringclasses
57 values
c_file
stringlengths
3
108
function
stringlengths
3
74
sloc
stringclasses
134 values
c_code
stringlengths
25
52.1k
c_constructs
dict
transcoder-set#SEARCH_INSERT_AND_DELETE_IN_AN_UNSORTED_ARRAY_prep#main.c
transcoder-set
SEARCH_INSERT_AND_DELETE_IN_AN_UNSORTED_ARRAY.c
main
26
int main(void) { int n_success = 0; int param0_0[] = {4,8,11,23,55,57,73,74,77,79,93}; int param0_1[] = {-88,12,-62,-66,-24,18,12,22,94,30,-50,-42,-94,18,76,-6,-48,-68,48,36,-78,52,-82,76,2,-44,-10,88}; int param0_2[] = {0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1}; int param0_3[] = {33,9,93,70,81,70,56,66,72,81,74...
{ "array_type": 3, "break_continue_statement": 1, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
less-633#position_prep#add_back_pos.c
less-633
position.c
add_back_pos
7
void add_back_pos(POSITION pos) { int i; for (i = sc_height - 1; i > 0; i--) table[i] = table[i-1]; table[0] = pos; }
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
tar-1.34#fdutimensat_prep#fdutimensat.c
tar-1.34
fdutimensat.c
fdutimensat
16
int fdutimensat (int fd, int dir, char const *file, struct timespec const ts[2], int atflag) { int result = 1; if (0 <= fd) result = futimens (fd, ts); if (file && (fd < 0 || (result == -1 && (*__errno_location ()) == 38))) result = utimensat (dir, file, ts, atflag); if (result == 1) { ...
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 3, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
tar-1.34#inttostr_prep#inttostr.c
tar-1.34
inttostr.c
inttostr
20
char * __attribute__ ((__warn_unused_result__)) inttostr (int i, char *buf) { char *p = buf + (((((sizeof (int) * 8) - (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (int)) 0 < (__typeof__ (int)) -1))); *p = 0; if (i < 0) { do *--p = '0' - i % 10; ...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
transcoder-set#N_TH_NUMBER_WHOSE_SUM_OF_DIGITS_IS_TEN_1_prep#sort.c
transcoder-set
N_TH_NUMBER_WHOSE_SUM_OF_DIGITS_IS_TEN_1.c
sort
1
void sort (int arr [ ], int n) {qsort (arr, n, sizeof(int), cmpfunc);}
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
tmux#layout_prep#layout_fix_panes.c
tmux
layout.c
layout_fix_panes
39
void layout_fix_panes(struct window *w, u_int wsx, u_int wsy) { struct window_pane *wp; struct layout_cell *lc; u_int sx, sy; int shift, status, at_top; status = options_get_number(w->options, "pane-border-status"); at_top = (status == 1); for((wp) = ((&w->panes)->tqh_first); (wp) != ((void *)0); (wp) = ((wp)->e...
{ "array_type": 0, "break_continue_statement": 1, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 8, "memory_management": 0, "memory_operation": 0, "pointer_type": 2, "return_statement": 0, "struct_type": 3, "switch_statement": 0, "type_casting": 2,...
findutils-4.9.0#timespec-sub_prep#timespec_sub.c
findutils-4.9.0
timespec-sub.c
timespec_sub
34
struct timespec timespec_sub (struct timespec a, struct timespec b) { time_t rs = a.tv_sec; time_t bs = b.tv_sec; int ns = a.tv_nsec - b.tv_nsec; int rns = ns; if (ns < 0) { rns = ns + TIMESPEC_HZ; time_t bs1; if (!__builtin_add_overflow (bs, 1, &bs1)) bs = bs1; else if (- ...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 1, "if_statement": 5, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
optipng-0.7.8#gifread_prep#GIFInitImage.c
optipng-0.7.8
gifread.c
GIFInitImage
6
void GIFInitImage(struct GIFImage *image, struct GIFScreen *screen, unsigned char **rows) { image->Screen = screen; image->Rows = rows; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 2, "switch_statement": 0, "type_casting": 0,...
uucp-1.07#xqtsub_prep#fsysdep_unlock_uuxqt.c
uucp-1.07
xqtsub.c
fsysdep_unlock_uuxqt
22
boolean fsysdep_unlock_uuxqt (iseq, zcmd, cmaxuuxqts) int iseq; const char *zcmd; int cmaxuuxqts __attribute__ ((__unused__)); { char ab[sizeof "LCK.XQT.9999"]; boolean fret; fret = (1); sprintf (ab, "LCK.XQT.%d", iseq); if (! fsdo_unlock (ab, (1))) fret = (0); if (zcmd != ((void *)0)) ...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 3, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
urlparser#gen_char_category_table_prep#main.c
urlparser
gen_char_category_table.c
main
16
int main() { fill( Scheme , alnum, "+-."); fill( Unreserved, alnum, unreserved); fill( GenDelim , alnum, ":/?#[]@"); fill( SubDelim , alnum, subdelim); fill( PCharSlash, alnum, ":@/%"); fill( PCharSlash, unreserved, subdelim); fill( HexDigit, "0123456789", "abcdef" "ABCDEF"); fill( Query, alnum, "/?:@%"); fill...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
libosip2-5.3.1#osip_uri_prep#__osip_uri_escape_header_param.c
libosip2-5.3.1
osip_uri.c
__osip_uri_escape_header_param
3
char *__osip_uri_escape_header_param(char *string) { return __osip_uri_escape_nonascii_and_nondef(string, header_param_def); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
transcoder-set#SMALLEST_OF_THREE_INTEGERS_WITHOUT_COMPARISON_OPERATORS_prep#sort.c
transcoder-set
SMALLEST_OF_THREE_INTEGERS_WITHOUT_COMPARISON_OPERATORS.c
sort
1
void sort (int arr [ ], int n) {qsort (arr, n, sizeof(int), cmpfunc);}
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
optipng-0.7.8#pngget_prep#png_get_chunk_cache_max.c
optipng-0.7.8
pngget.c
png_get_chunk_cache_max
5
png_uint_32 png_get_chunk_cache_max(png_const_structrp png_ptr) { return (png_ptr ? png_ptr->user_chunk_cache_max : 0); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
tinycc#tccelf_prep#find_elf_sym.c
tinycc
tccelf.c
find_elf_sym
21
int find_elf_sym(Section *s, const char *name) { Elf64_Sym *sym; Section *hs; int nbuckets, sym_index, h; const char *name1; hs = s->hash; if (!hs) return 0; nbuckets = ((int *)hs->data)[0]; h = elf_hash((unsigned char *) name) % nbuckets; sym_index = ((int *)hs->data)[2 + h]...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 0, "memory_operation": 0, "pointer_type": 3, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 4,...
libxml2#buf_prep#xmlBufferLength.c
libxml2
buf.c
xmlBufferLength
7
int xmlBufferLength(const xmlBuffer *buf) { if(!buf) return 0; return buf->use; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
libxml2#xmlwriter_prep#xmlNewTextWriterFilename.c
libxml2
xmlwriter.c
xmlNewTextWriterFilename
22
xmlTextWriterPtr xmlNewTextWriterFilename(const char *uri, int compression) { xmlTextWriterPtr ret; xmlOutputBufferPtr out; out = xmlOutputBufferCreateFilename(uri, ((void *)0), compression); if (out == ((void *)0)) { xmlWriterErrMsg(((void *)0), XML_IO_EIO, "xmlNewTextWr...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 7,...
mcsim-6.2.0#modelu_prep#ModelIndex.c
mcsim-6.2.0
modelu.c
ModelIndex
4
int ModelIndex (HVAR hvar) { return (IsModelVar(hvar) ? ((int) ((hvar) & 0x0FFFF)) : 0); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
mtools-4.0.43#direntry_prep#getEntryAsPos.c
mtools-4.0.43
direntry.c
getEntryAsPos
5
unsigned int getEntryAsPos(direntry_t *entry) { int pos = entry->entry; ((void) sizeof ((pos >= 0) ? 1 : 0), __extension__ ({ if (pos >= 0) ; else __assert_fail ("pos >= 0", "direntry.c", 57, __extension__ __PRETTY_FUNCTION__); })); return (unsigned int) pos; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
json.h#allow_hexadecimal_numbers_prep#json_extract_get_string_size.c
json.h
allow_hexadecimal_numbers.c
json_extract_get_string_size
7
struct json_extract_result_s json_extract_get_string_size(const struct json_string_s *const string) { struct json_extract_result_s result; result.dom_size = sizeof(struct json_string_s); result.data_size = string->string_size + 1; return result; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 1, "switch_statement": 0, "type_casting": 1,...
nettle-3.9.1#gcm-aes_prep#nettle_gcm_aes_set_iv.c
nettle-3.9.1
gcm-aes.c
nettle_gcm_aes_set_iv
6
void nettle_gcm_aes_set_iv(struct gcm_aes_ctx *ctx, size_t length, const uint8_t *iv) { nettle_gcm_set_iv(&(ctx)->gcm, &(ctx)->key, (length), (iv)); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 1, "switch_statement": 0, "type_casting": 0,...
transcoder-set#NUMBER_UNIQUE_RECTANGLES_FORMED_USING_N_UNIT_SQUARES_prep#main.c
transcoder-set
NUMBER_UNIQUE_RECTANGLES_FORMED_USING_N_UNIT_SQUARES.c
main
14
int main(void) { int n_success = 0; int param0[] = {34,49,41,17,67,38,59,64,61,58}; for(int i = 0; i < len(param0); ++i) { if(f_filled(param0[i]) == f_gold(param0[i])) { n_success+=1; } break; } printf("#Results:", " ", n_success, ", ", len(param0)); return ...
{ "array_type": 1, "break_continue_statement": 1, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
libxml2#parserInternals_prep#xmlCtxtNewInputFromMemory.c
libxml2
parserInternals.c
xmlCtxtNewInputFromMemory
16
xmlParserInputPtr xmlCtxtNewInputFromMemory(xmlParserCtxtPtr ctxt, const char *url, const void *mem, size_t size, const char *encoding, int flags) { xmlParserInputPtr input; if ((ctxt == ((void *)0)) || (mem == ((void *)0))) return(((void *)0)); input = x...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 3, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 5,...
libosip2-5.3.1#osip_transaction_prep#osip_transaction_set_reserved2.c
libosip2-5.3.1
osip_transaction.c
osip_transaction_set_reserved2
6
int osip_transaction_set_reserved2(osip_transaction_t *transaction, void *ptr) { if (transaction == ((void *)0)) return -2; transaction->reserved2 = ptr; return 0; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
transcoder-set#MAXIMUM_SUM_IARRI_AMONG_ROTATIONS_GIVEN_ARRAY_1_prep#f_gold.c
transcoder-set
MAXIMUM_SUM_IARRI_AMONG_ROTATIONS_GIVEN_ARRAY_1.c
f_gold
19
int f_gold ( int arr [ ], int n ) { int cum_sum = 0; for ( int i = 0; i < n; i ++ ) cum_sum += arr [ i ]; int curr_val = 0; for ( int i = 0; i < n; i ++ ) curr_val += i * arr [ i ]; int res = curr_val; for ( int i = 1; i < n; i ++ ) { int next_val = curr_val - ( cum_sum - arr [ i - 1 ] ) + a...
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 3, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
libosip2-5.3.1#osip_header_prep#osip_header_set_name.c
libosip2-5.3.1
osip_header.c
osip_header_set_name
3
void osip_header_set_name(osip_header_t *header, char *name) { header->hname = name; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
tar-1.34#buffer_prep#xclose.c
tar-1.34
buffer.c
xclose
6
void xclose (int fd) { if (close (fd) != 0) close_error (gettext ("(pipe)")); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
libxml2#xmlstring_prep#xmlStrncasecmp.c
libxml2
xmlstring.c
xmlStrncasecmp
13
int xmlStrncasecmp(const xmlChar *str1, const xmlChar *str2, int len) { register int tmp; if (len <= 0) return(0); if (str1 == str2) return(0); if (str1 == ((void *)0)) return(-1); if (str2 == ((void *)0)) return(1); do { tmp = casemap[*str1++] - casemap[*str2]; if (tmp != 0 || -...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 5, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 6, "struct_type": 0, "switch_statement": 0, "type_casting": 2,...
findutils-4.9.0#pred_prep#pred_type.c
findutils-4.9.0
pred.c
pred_type
44
_Bool pred_type (const char *pathname, struct stat *stat_buf, struct predicate *pred_ptr) { mode_t mode; enum file_type type = FTYPE_COUNT; ((void) sizeof ((state.have_type) ? 1 : 0), __extension__ ({ if (state.have_type) ; else __assert_fail ("state.have_type", "pred.c", 977, __extension__ __PRETTY_FUNCTION__); ...
{ "array_type": 1, "break_continue_statement": 7, "enum_type": 1, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 4, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 3, "struct_type": 1, "switch_statement": 1, "type_casting": 2,...
snudown#buffer_prep#buftruncate.c
snudown
buffer.c
buftruncate
10
int buftruncate(struct buf *buf, size_t size) { if (buf->size < size || size < 0) { ((void) sizeof ((0) ? 1 : 0), __extension__ ({ if (0) ; else __assert_fail ("0", "buffer.c", 186, __extension__ __PRETTY_FUNCTION__); })); return BUF_EINVALIDIDX; } buf->size = size; return BUF_OK; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 2, "struct_type": 1, "switch_statement": 0, "type_casting": 1,...
lodepng#lodepng_prep#lodepng_compress_settings_init.c
lodepng
lodepng.c
lodepng_compress_settings_init
11
void lodepng_compress_settings_init(LodePNGCompressSettings* settings) { settings->btype = 2; settings->use_lz77 = 1; settings->windowsize = 2048; settings->minmatch = 3; settings->nicematch = 128; settings->lazymatching = 1; settings->custom_zlib = 0; settings->custom_deflate = 0; settings->custom_co...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
libxml2#libxml2-py_prep#libxml_xmlUCSIsTags.c
libxml2
libxml2-py.c
libxml_xmlUCSIsTags
13
PyObject * libxml_xmlUCSIsTags(PyObject *self __attribute__ ((__unused__)), PyObject *args) { PyObject *py_retval; int c_retval; int code; if (libxml_deprecationWarning("xmlUCSIsTags") == -1) return(((void *)0)); if (!_PyArg_ParseTuple_SizeT(args, (char *)"i:xmlUCSIsTags", &code)) re...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 4,...
libxml2#libxml2-py_prep#libxml_xmlReplaceNode.c
libxml2
libxml2-py.c
libxml_xmlReplaceNode
16
PyObject * libxml_xmlReplaceNode(PyObject *self __attribute__ ((__unused__)), PyObject *args) { PyObject *py_retval; xmlNodePtr c_retval; xmlNodePtr old; PyObject *pyobj_old; xmlNodePtr cur; PyObject *pyobj_cur; if (!_PyArg_ParseTuple_SizeT(args, (char *)"OO:xmlReplaceNode", &pyobj_old, &pyo...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 3, "return_statement": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 4,...
libosip2-5.3.1#osip_transaction_prep#osip_transaction_get_your_instance.c
libosip2-5.3.1
osip_transaction.c
osip_transaction_get_your_instance
5
void *osip_transaction_get_your_instance(osip_transaction_t *transaction) { if (transaction == ((void *)0)) return ((void *)0); return transaction->reserved1; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 2,...
json.h#allow_unquoted_keys_prep#json_write_pretty_get_value_size.c
json.h
allow_unquoted_keys.c
json_write_pretty_get_value_size
31
int json_write_pretty_get_value_size(const struct json_value_s *value, size_t depth, size_t indent_size, size_t newline_size, size_t *size) { switch (value->type) { default: return 1; case json_type_number: return json_write_get_num...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 8, "struct_type": 1, "switch_statement": 1, "type_casting": 4,...
screen-4.9.0#misc_prep#Kill.c
screen-4.9.0
misc.c
Kill
8
void Kill(pid, sig) int pid, sig; { if (pid < 2) return; (void) kill(pid, sig); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
pth-2.0.7#pth_high_prep#pth_sendto.c
pth-2.0.7
pth_high.c
pth_sendto
4
ssize_t pth_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen) { return pth_sendto_ev(s, buf, len, flags, to, tolen, ((void *)0)); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 1, "switch_statement": 0, "type_casting": 1,...
libosip2-5.3.1#osip_authorization_prep#osip_authorization_init.c
libosip2-5.3.1
osip_authorization.c
osip_authorization_init
7
int osip_authorization_init(osip_authorization_t **dest) { *dest = (osip_authorization_t *) (osip_malloc_func ? osip_malloc_func(sizeof(osip_authorization_t)) : malloc(sizeof(osip_authorization_t))); if (*dest == ((void *)0)) return -4; memset(*dest, 0, sizeof(osip_authorization_t)); return 0; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 1, "memory_operation": 1, "pointer_type": 0, "return_statement": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
json.h#allow_json5_prep#json_write_minified_object.c
json.h
allow_json5.c
json_write_minified_object
21
char *json_write_minified_object(const struct json_object_s *object, char *data) { struct json_object_element_s *element = 0; *data++ = '{'; for (element = object->start; 0 != element; element = element->next) { if (element != object->start) { *data++ = ','; } da...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 3, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 3, "struct_type": 2, "switch_statement": 0, "type_casting": 0,...
tmux#cmd-find_prep#cmd_find_from_session_window.c
tmux
cmd-find.c
cmd_find_from_session_window
15
int cmd_find_from_session_window(struct cmd_find_state *fs, struct session *s, struct window *w, int flags) { cmd_find_clear_state(fs, flags); fs->s = s; fs->w = w; if (cmd_find_best_winlink_with_window(fs) != 0) { cmd_find_clear_state(fs, flags); return (-1); } fs->wp = fs->w->active; cmd_find_log_state...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 2, "struct_type": 2, "switch_statement": 0, "type_casting": 0,...
libosip2-5.3.1#sdp_accessor_prep#sdp_message_m_payload_get.c
libosip2-5.3.1
sdp_accessor.c
sdp_message_m_payload_get
6
char *sdp_message_m_payload_get(sdp_message_t *sdp, int pos_media, int pos) { sdp_media_t *med = osip_list_get(&sdp->m_medias, pos_media); if (med == ((void *)0)) return ((void *)0); return (char *) osip_list_get(&med->m_payloads, pos); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 3,...
json.h#allow_location_information_prep#json_get_key_size.c
json.h
allow_location_information.c
json_get_key_size
31
int json_get_key_size(struct json_parse_state_s *state) { const size_t flags_bitset = state->flags_bitset; if (json_parse_flags_allow_unquoted_keys & flags_bitset) { size_t offset = state->offset; const size_t size = state->size; const char *const src = state->src; size_t data_size = state->data_siz...
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 4, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 4, "struct_type": 1, "switch_statement": 0, "type_casting": 2,...
libxml2#libxml2-py_prep#libxml_xmlXPathGetContextSize.c
libxml2
libxml2-py.c
libxml_xmlXPathGetContextSize
13
PyObject * libxml_xmlXPathGetContextSize(PyObject *self __attribute__ ((__unused__)), PyObject *args) { PyObject *py_retval; int c_retval; xmlXPathContextPtr ctxt; PyObject *pyobj_ctxt; if (!_PyArg_ParseTuple_SizeT(args, (char *)"O:xmlXPathGetContextSize", &pyobj_ctxt)) return(((void *)0)); ...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 2, "return_statement": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 4,...
tmux#tty-term_prep#tty_term_ptr1.c
tmux
tty-term.c
tty_term_ptr1
5
const char * tty_term_ptr1(struct tty_term *term, enum tty_code_code code, const void *a) { return (tparm((char *) tty_term_string(term, code), a, 0, 0, 0, 0, 0, 0, 0, 0)); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 1, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 1, "switch_statement": 0, "type_casting": 1,...
libxml2#xmlwriter_prep#xmlTextWriterWriteVFormatAttribute.c
libxml2
xmlwriter.c
xmlTextWriterWriteVFormatAttribute
16
int xmlTextWriterWriteVFormatAttribute(xmlTextWriterPtr writer, const xmlChar * name, const char *format, va_list argptr) { int rc; xmlChar *buf; if (writer == ((void *)0)) return -1; buf = xmlTextWriterVSprintf(format, argptr...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 2,...
nettle-3.9.1#gmp-glue_prep#_nettle_mpz_set_n.c
nettle-3.9.1
gmp-glue.c
_nettle_mpz_set_n
6
void _nettle_mpz_set_n (mpz_t r, const mp_limb_t *xp, mp_size_t xn) { __gmpn_copyi (__gmpz_limbs_write (r, xn), xp, xn); __gmpz_limbs_finish (r, xn); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
dap-3.10#dap0_prep#dap_name.c
dap-3.10
dap0.c
dap_name
25
void dap_name(char dname[], char *fname) { struct stat statbuf; if (!fname || !fname[0]) { strcpy(dname, "/dev/null"); return; } strcpy(dname, dap_setdir); if (stat(dname, &statbuf) < 0) { if (mkdir(dname, (mode_t) 0700) < 0) { perror(dap_dapname); exit(1); } } else i...
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 4, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
cpio-2.14#paxerror_prep#exec_fatal.c
cpio-2.14
paxerror.c
exec_fatal
5
void exec_fatal (char const *name) { call_arg_fatal ("exec", name); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
screen-4.9.0#process_prep#ParseAttrColor.c
screen-4.9.0
process.c
ParseAttrColor
162
int ParseAttrColor(s1, s2, msgok) char *s1, *s2; int msgok; { int i, n; char *s, *ss; int r = 0; s = s1; while (*s == ' ') s++; ss = s; while (*ss && *ss != ' ') ss++; while (*ss == ' ') ss++; if (*s && (s2 || *ss || !((*s >= 'a' && *s <= 'z') || (*s >= 'A' && *s <= 'Z') || *s == '.'))) ...
{ "array_type": 1, "break_continue_statement": 1, "enum_type": 0, "for_loop": 2, "function_pointer": 0, "goto_statement": 0, "if_statement": 41, "memory_management": 0, "memory_operation": 0, "pointer_type": 2, "return_statement": 8, "struct_type": 0, "switch_statement": 0, "type_casting": 0...
transcoder-set#COMPUTE_N_UNDER_MODULO_P_prep#len.c
transcoder-set
COMPUTE_N_UNDER_MODULO_P.c
len
1
int len (int arr [ ]) {return ((int) (sizeof (arr) / sizeof (arr)[0]));}
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
libxml2#libxml2-py_prep#libxml_xmlUCSIsPrivateUse.c
libxml2
libxml2-py.c
libxml_xmlUCSIsPrivateUse
13
PyObject * libxml_xmlUCSIsPrivateUse(PyObject *self __attribute__ ((__unused__)), PyObject *args) { PyObject *py_retval; int c_retval; int code; if (libxml_deprecationWarning("xmlUCSIsPrivateUse") == -1) return(((void *)0)); if (!_PyArg_ParseTuple_SizeT(args, (char *)"i:xmlUCSIsPrivateUse", ...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 4,...
transcoder-set#MAXIMUM_BINOMIAL_COEFFICIENT_TERM_VALUE_prep#f_gold.c
transcoder-set
MAXIMUM_BINOMIAL_COEFFICIENT_TERM_VALUE.c
f_gold
18
int f_gold ( int n ) { int C [ n + 1 ] [ n + 1 ]; for ( int i = 0; i <= n; i ++ ) { for ( int j = 0; j <= min ( i, n ); j ++ ) { if ( j == 0 || j == i ) C [ i ] [ j ] = 1; else C [ i ] [ j ] = C [ i - 1 ] [ j - 1 ] + C [ i - 1 ] [ j ]; } } int maxvalue = 0; for ( int i = 0; i...
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 3, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
libxml2#xpath_prep#xmlXPathEval.c
libxml2
xpath.c
xmlXPathEval
23
xmlXPathObjectPtr xmlXPathEval(const xmlChar *str, xmlXPathContextPtr ctx) { xmlXPathParserContextPtr ctxt; xmlXPathObjectPtr res; if (ctx == ((void *)0)) return(((void *)0)); xmlInitParser(); xmlResetError(&ctx->lastError); ctxt = xmlXPathNewParserContext(str, ctx); if (ctxt == ((vo...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 4, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 6,...
libxml2#libxml2-py_prep#libxml_xmlReadFd.c
libxml2
libxml2-py.c
libxml_xmlReadFd
14
PyObject * libxml_xmlReadFd(PyObject *self __attribute__ ((__unused__)), PyObject *args) { PyObject *py_retval; xmlDocPtr c_retval; int fd; char * URL; char * encoding; int options; if (!_PyArg_ParseTuple_SizeT(args, (char *)"izzi:xmlReadFd", &fd, &URL, &encoding, &options)) return((...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 2,...
libosip2-5.3.1#osip_content_length_prep#osip_content_length_parse.c
libosip2-5.3.1
osip_content_length.c
osip_content_length_parse
13
int osip_content_length_parse(osip_content_length_t *content_length, const char *hvalue) { size_t len; if (hvalue == ((void *)0)) return -2; len = strlen(hvalue); if (len + 1 < 2) return -5; content_length->value = (char *) (osip_malloc_func ? osip_malloc_func(len + 1) : malloc(len + 1)); if (conten...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 3, "memory_management": 1, "memory_operation": 0, "pointer_type": 0, "return_statement": 4, "struct_type": 0, "switch_statement": 0, "type_casting": 3,...
gzip-1.12#util_prep#copy.c
gzip-1.12
util.c
copy
16
int copy(in, out) int in, out; { int got; (*__errno_location ()) = 0; while (insize > inptr) { write_buf(out, (char*)inbuf + inptr, insize - inptr); got = read_buffer (in, (char *) inbuf, 0x40000); if (got == -1) read_error(); bytes_in += got; insize =...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 3,...
gprolog-1.5.0#ma2asm_prep#BT_String_Init.c
gprolog-1.5.0
ma2asm.c
BT_String_Init
6
void BT_String_Init(BTString *bt_str) { bt_str->tree = ((void *)0); bt_str->nb_elem = 0; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
transcoder-set#SPACE_OPTIMIZED_DP_SOLUTION_0_1_KNAPSACK_PROBLEM_prep#f_gold.c
transcoder-set
SPACE_OPTIMIZED_DP_SOLUTION_0_1_KNAPSACK_PROBLEM.c
f_gold
22
int f_gold ( int val [ ], int wt [ ], int n, int W ) { int mat [ 2 ] [ W + 1 ]; memset ( mat, 0, sizeof ( mat ) ); int i = 0; while ( i < n ) { int j = 0; if ( i % 2 != 0 ) { while ( ++ j <= W ) { if ( wt [ i ] <= j ) mat [ 1 ] [ j ] = max ( val [ i ] + mat [ 0 ] [ j - wt [ i ] ], mat [ 0 ...
{ "array_type": 3, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 3, "memory_management": 0, "memory_operation": 1, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
gprolog-1.5.0#c_supp_prep#Pl_Rd_Compound.c
gprolog-1.5.0
c_supp.c
Pl_Rd_Compound
22
WamWord * Pl_Rd_Compound(WamWord start_word, int *func, int *arity) { WamWord word, tag_mask; WamWord *adr; do { WamWord deref_last_word; word = start_word; ; do { ; deref_last_word = word; tag_mask = ((PlLong) (word) & ((PlULong)0x7)); if (tag_mask != (PlULong)0) break; word = *(((WamWord *) (word))); } while (w...
{ "array_type": 0, "break_continue_statement": 1, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 3, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 2,...
uucp-1.07#log_prep#ulog_close.c
uucp-1.07
log.c
ulog_close
17
void ulog_close () { ulog (LOG_ERROR, (const char *) ((void *)0)); if (eLlog != ((void *)0)) { (void) fclose (eLlog); eLlog = ((void *)0); fLlog_tried = (0); } if (eLdebug != ((void *)0)) { (void) fclose (eLdebug); eLdebug = ((void *)0); fLdebug_tried = (0); } }...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 7,...
libxml2#xmlunicode_prep#xmlUCSIsSupplementalMathematicalOperators.c
libxml2
xmlunicode.c
xmlUCSIsSupplementalMathematicalOperators
4
int xmlUCSIsSupplementalMathematicalOperators(int code) { return(((code >= 0x2A00) && (code <= 0x2AFF))); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
indent-2.2.13#indent_prep#main.c
indent-2.2.13
indent.c
main
44
int main( int argc, char ** argv) { char *tmp; char *profile_pathname = 0; BOOLEAN using_stdin = 0; exit_values_ty exit_status; bindtextdomain("indent", "/usr/local/share/locale"); textdomain("indent"); memset(&settings, 0, sizeof(settings)); tmp = xmalloc(7); memcpy(tmp, "size_...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 3, "memory_management": 0, "memory_operation": 4, "pointer_type": 2, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
libosip2-5.3.1#osip_message_prep#osip_message_set_status_code.c
libosip2-5.3.1
osip_message.c
osip_message_set_status_code
3
void osip_message_set_status_code(osip_message_t *sip, int status_code) { sip->status_code = status_code; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
libxml2#list_prep#xmlListSize.c
libxml2
list.c
xmlListSize
10
int xmlListSize(xmlListPtr l) { xmlLinkPtr lk; int count=0; if (l == ((void *)0)) return(-1); for(lk = l->sentinel->next; lk != l->sentinel; lk = lk->next, count++); return count; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
nettle-3.9.1#ripemd160_prep#nettle_ripemd160_init.c
nettle-3.9.1
ripemd160.c
nettle_ripemd160_init
15
void nettle_ripemd160_init(struct ripemd160_ctx *ctx) { static const uint32_t iv[5] = { 0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0, }; memcpy(ctx->state, iv, sizeof(ctx->state)); ctx->count = 0; ctx->index = 0; }
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 1, "pointer_type": 0, "return_statement": 0, "struct_type": 1, "switch_statement": 0, "type_casting": 0,...
tar-1.34#tar_prep#confirm.c
tar-1.34
tar.c
confirm
39
int confirm (const char *message_action, const char *message_name) { static FILE *confirm_file; static int confirm_file_EOF; _Bool status = 0; if (!confirm_file) { if (archive == 0 || stdin_used_by) { confirm_file = fopen ("/dev/tty", "r"); if (! confirm_file) open_fatal ("/dev/tty"); } ...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 6, "memory_management": 1, "memory_operation": 0, "pointer_type": 2, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
findutils-4.9.0#xargs_prep#main.c
findutils-4.9.0
xargs.c
main
327
int main (int argc, char **argv) { int optc, option_index; int show_limits = 0; int always_run_command = 1; const char *input_file = "-"; char default_cmd[] = "echo"; char *default_arglist[1]; int (*read_args) (void) = read_line; void (*act_on_init_result)(void) = noop; enum BC_INIT_STATUS bcstatus; ...
{ "array_type": 4, "break_continue_statement": 18, "enum_type": 1, "for_loop": 3, "function_pointer": 4, "goto_statement": 0, "if_statement": 36, "memory_management": 0, "memory_operation": 0, "pointer_type": 5, "return_statement": 2, "struct_type": 0, "switch_statement": 1, "type_casting": ...
nettle-3.9.1#aes256-encrypt_prep#_nettle_aes256_encrypt_c.c
nettle-3.9.1
aes256-encrypt.c
_nettle_aes256_encrypt_c
9
void _nettle_aes256_encrypt_c(const struct aes256_ctx *ctx, size_t length, uint8_t *dst, const uint8_t *src) { ((void) sizeof ((!(length % 16)) ? 1 : 0), __extension__ ({ if (!(length % 16)) ; else __assert_fail ("!(length % AES_BLOCK_SIZE)", "aes256-encrypt.c", 56, __extension__ __PRETTY_FUNCTION__);...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 1, "switch_statement": 0, "type_casting": 1,...
transcoder-set#NUMBER_DIGITS_PRODUCT_TWO_NUMBERS_1_prep#sort.c
transcoder-set
NUMBER_DIGITS_PRODUCT_TWO_NUMBERS_1.c
sort
1
void sort (int arr [ ], int n) {qsort (arr, n, sizeof(int), cmpfunc);}
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
mcsim-6.2.0#modo_prep#WriteHeader.c
mcsim-6.2.0
modo.c
WriteHeader
7
void WriteHeader (PFILE pfile, PSTR szName, PVMMAPSTRCT pvmGlo) { time_t ttTime; time(&ttTime); if (fprintf(pfile, "/* %s\n", szName) < 0) ReportError(((void *)0), 0x0003 | 0x8000, szName, "...in WriteHeader ()"); fprintf(pfile, " ___________________________________________________\n\n"); ...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 5, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 5,...
transcoder-set#C_PROGRAM_FACTORIAL_NUMBER_1_prep#cmpfunc.c
transcoder-set
C_PROGRAM_FACTORIAL_NUMBER_1.c
cmpfunc
1
int cmpfunc (const void * a, const void * b) {return ( *(int*)a - *(int*)b );}
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
make-4.4.1#misc_prep#get_tmpfd.c
make-4.4.1
misc.c
get_tmpfd
36
int get_tmpfd (char **name) { int fd = -1; char *tmpnm; mode_t mask; if (name) *name = ((void *)0); else { fd = os_anontmp (); if (fd >= 0) return fd; } mask = umask (0077); tmpnm = get_tmptemplate (); while (((fd)=mkstemp (tmpnm))==-1 && (*__errno_location ())==4); if ...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 5, "memory_management": 2, "memory_operation": 0, "pointer_type": 1, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
transcoder-set#FIND_SMALLEST_VALUE_REPRESENTED_SUM_SUBSET_GIVEN_ARRAY_prep#f_gold.c
transcoder-set
FIND_SMALLEST_VALUE_REPRESENTED_SUM_SUBSET_GIVEN_ARRAY.c
f_gold
7
int f_gold ( int arr [ ], int n ) { int res = 1; for ( int i = 0; i < n && arr [ i ] <= res; i ++ ) res = res + arr [ i ]; return res; }
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
nettle-3.9.1#aes192-set-decrypt-key_prep#nettle_aes192_invert_key.c
nettle-3.9.1
aes192-set-decrypt-key.c
nettle_aes192_invert_key
5
void nettle_aes192_invert_key (struct aes192_ctx *dst, const struct aes192_ctx *src) { _nettle_aes_invert (12, dst->keys, src->keys); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 1, "switch_statement": 0, "type_casting": 0,...
gprolog-1.5.0#ma2asm_inst_prep#Dico_String_Stop.c
gprolog-1.5.0
ma2asm_inst.c
Dico_String_Stop
4
void Dico_String_Stop(int nb) { }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
mtools-4.0.43#device_prep#check_if_sectors_fit.c
mtools-4.0.43
device.c
check_if_sectors_fit
15
int check_if_sectors_fit(uint32_t tot_sectors, mt_off_t maxBytes, uint32_t sectorSize, char *errmsg) { if(!maxBytes) return 0; if(tot_sectors > (smt_off_t) maxBytes / (smt_off_t) sectorSize) { sprintf(errmsg, "%d sectors too large for this platform\n", tot_sectors); return -1; } return 0; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
transcoder-set#SEARCH_AN_ELEMENT_IN_AN_ARRAY_WHERE_DIFFERENCE_BETWEEN_ADJACENT_ELEMENTS_IS_1_prep#f_filled.c
transcoder-set
SEARCH_AN_ELEMENT_IN_AN_ARRAY_WHERE_DIFFERENCE_BETWEEN_ADJACENT_ELEMENTS_IS_1.c
f_filled
1
int f_filled ( int arr [ ], int n, int x ) {}
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
units-2.22#units_prep#ignore_primitive.c
units-2.22
units.c
ignore_primitive
11
int ignore_primitive(char *name) { struct unitlist *ul; if (!name) return 0; ul = ulookup(name); if (ul && strchr(ul->value, '!')) return 1; return 0; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 3, "struct_type": 1, "switch_statement": 0, "type_casting": 0,...
transcoder-set#MIDDLE_OF_THREE_USING_MINIMUM_COMPARISONS_1_prep#f_gold.c
transcoder-set
MIDDLE_OF_THREE_USING_MINIMUM_COMPARISONS_1.c
f_gold
12
int f_gold ( int a, int b, int c ) { if ( a > b ) { if ( b > c ) return b; else if ( a > c ) return c; else return a; } else { if ( a > c ) return a; else if ( b > c ) return c; else return b; } }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 5, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 6, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
transcoder-set#MINIMUM_DIFFERENCE_MAX_MIN_K_SIZE_SUBSETS_prep#main.c
transcoder-set
MINIMUM_DIFFERENCE_MAX_MIN_K_SIZE_SUBSETS.c
main
26
int main(void) { int n_success = 0; int param0_0[] = {1,1,4,18,21,35,37,39,76,81,86,92,96}; int param0_1[] = {-8,-6,62,52,-86,2,-94,0,-48,-38,24,-48,34}; int param0_2[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1}; int param0_3[] = {23,36,43,50,74,81,94,13,30,57,30,71,10,99,66,94,83,39,37,3,89,34...
{ "array_type": 3, "break_continue_statement": 1, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
nettle-3.9.1#umac-l2_prep#_nettle_umac_l2_init.c
nettle-3.9.1
umac-l2.c
_nettle_umac_l2_init
11
void _nettle_umac_l2_init (unsigned size, uint32_t *k) { unsigned i; for (i = 0; i < size; i++) { uint32_t w = k[i]; w = (((((w)<<(8)) | ((w)>>((-(8)&31)))) & 0x00FF00FFUL) | ((((w)<<(24)) | ((w)>>((-(24)&31)))) & 0xFF00FF00UL)); k[i] = w & 0x01ffffffUL; } }
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
nettle-3.9.1#sexp2dsa_prep#nettle_dsa_signature_from_sexp.c
nettle-3.9.1
sexp2dsa.c
nettle_dsa_signature_from_sexp
13
int nettle_dsa_signature_from_sexp(struct dsa_signature *rs, struct sexp_iterator *i, unsigned q_bits) { static const char * const names[2] = { "r", "s" }; struct sexp_iterator values[2]; if (!nettle_sexp_iterator_assoc(i, 2, names, values)) return 0; do { if (!nettle_mpz_set_sexp((rs->r), (q_bits), (...
{ "array_type": 2, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 3, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 4, "struct_type": 2, "switch_statement": 0, "type_casting": 0,...
libosip2-5.3.1#osip_authorization_prep#osip_authorization_get_crand.c
libosip2-5.3.1
osip_authorization.c
osip_authorization_get_crand
3
char *osip_authorization_get_crand(osip_authorization_t *authorization) { return authorization->crand; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
tmux#tty-term_prep#tty_term_number.c
tmux
tty-term.c
tty_term_number
9
int tty_term_number(struct tty_term *term, enum tty_code_code code) { if (!tty_term_has(term, code)) return (0); if (term->codes[code].type != TTYCODE_NUMBER) fatalx("not a number: %d", code); return (term->codes[code].value.number); }
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 1, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 2, "struct_type": 1, "switch_statement": 0, "type_casting": 0,...
gprolog-1.5.0#wam2ma_prep#F_put_atom.c
gprolog-1.5.0
wam2ma.c
F_put_atom
7
void F_put_atom(ArgVal arg[]) { ArgVal *top = arg; BTNode *atom; char *str_atom; PlLong a; ((str_atom) = *((char * *) (top)) , (top)++); atom = BT_String_Add(&bt_tagged_atom, str_atom); ((a) = *((PlLong *) (top)) , (top)++); Inst_Printf("call_c", "Pl_Put_Atom_Tagged(ta(%d))", atom->no); Inst_Printf("move_ret", "X...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 4, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
libxml2#parserInternals_prep#xmlPedanticParserDefault.c
libxml2
parserInternals.c
xmlPedanticParserDefault
6
int xmlPedanticParserDefault(int val) { int old = (*__xmlPedanticParserDefaultValue()); (*__xmlPedanticParserDefaultValue()) = val; return(old); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
transcoder-set#FIND_MINIMUM_NUMBER_DIVIDED_MAKE_NUMBER_PERFECT_SQUARE_prep#max.c
transcoder-set
FIND_MINIMUM_NUMBER_DIVIDED_MAKE_NUMBER_PERFECT_SQUARE.c
max
1
int max(int x, int y) { return (x > y)? x: y; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
json.h#allow_hexadecimal_numbers_prep#json_write_string.c
json.h
allow_hexadecimal_numbers.c
json_write_string
41
char *json_write_string(const struct json_string_s *string, char *data) { size_t i; *data++ = '"'; for (i = 0; i < string->string_size; i++) { switch (string->string[i]) { case '"': *data++ = '\\'; *data++ = '"'; break; case '\\': *data++ = '\\'; *data++ = '\\'; bre...
{ "array_type": 1, "break_continue_statement": 8, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 1, "switch_statement": 1, "type_casting": 0,...
tulipindicators-0.9.1#tiamalgamation_prep#ti_mom_start.c
tulipindicators-0.9.1
tiamalgamation.c
ti_mom_start
3
int ti_mom_start(double const *options) { return (int)options[0]; }
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
bzip2#bzlib_prep#BZ2_bzWriteOpen.c
bzip2
bzlib.c
BZ2_bzWriteOpen
37
BZFILE* BZ2_bzWriteOpen ( int* bzerror, FILE* f, int blockSize100k, int verbosity, int workFactor ) { Int32 ret; bzFile* bzf = ((void *)0); { if (bzerror != ((void *)0)) *bzerror = 0; if (bzf != ((void *...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 11, "memory_management": 2, "memory_operation": 0, "pointer_type": 0, "return_statement": 5, "struct_type": 0, "switch_statement": 0, "type_casting": 1...
libosip2-5.3.1#osip_authorization_prep#osip_authorization_set_version.c
libosip2-5.3.1
osip_authorization.c
osip_authorization_set_version
3
void osip_authorization_set_version(osip_authorization_t *authorization, char *version) { authorization->version = (char *) version; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
libcsv#libcsv_prep#csv_set_delim.c
libcsv
libcsv.c
csv_set_delim
5
void csv_set_delim(struct csv_parser *p, unsigned char c) { if (p) p->delim_char = c; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 1, "switch_statement": 0, "type_casting": 0,...
gawk-5.2.2#symbol_prep#install_params.c
gawk-5.2.2
symbol.c
install_params
14
void install_params(NODE *func) { int i, pcount; NODE *parms; if (func == ((void *)0)) return; ((void) (0)); if ( (pcount = func->sub.nodep.l.ll) <= 0 || (parms = func->sub.nodep.rn) == ((void *)0)) return; for (i = 0; i < pcount; i++) (void) install(parms[i].sub.nodep.name, parms + i, Node_param_list)...
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 4,...
json.h#allow_hexadecimal_numbers_prep#json_parse_value.c
json.h
allow_hexadecimal_numbers.c
json_parse_value
95
void json_parse_value(struct json_parse_state_s *state, int is_global_object, struct json_value_s *value) { const size_t flags_bitset = state->flags_bitset; const char *const src = state->src; const size_t size = state->size; size_t offset; (void)json_skip_all_skippables(state); offset...
{ "array_type": 1, "break_continue_statement": 5, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 6, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 0, "struct_type": 2, "switch_statement": 1, "type_casting": 15...
transcoder-set#DICE_THROW_PROBLEM_prep#f_gold.c
transcoder-set
DICE_THROW_PROBLEM.c
f_gold
15
int f_gold ( int m, int n, int x ) { int table [ n + 1 ] [ x + 1 ]; memset ( table, 0, sizeof ( table ) ); for ( int j = 1; j <= m && j <= x; j ++ ) table [ 1 ] [ j ] = 1; for ( int i = 2; i <= n; i ++ ) for ( int j = 1; j <= x; j ++ ) for ( int k = 1; k <= m && k < j; k ++ ) table [ i ] [ j ] +...
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 4, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 1, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
mcsim-6.2.0#modo_prep#WriteOne_R_PIDefine.c
mcsim-6.2.0
modo.c
WriteOne_R_PIDefine
16
int WriteOne_R_PIDefine (PFILE pfile, PVMMAPSTRCT pvm, PVOID pInfo) { static long iParms = 0; static long iForcs = 0; ((void) sizeof (((pvm ? (pvm)->hType & 0xF0000 : 0x00000) != 0x30000) ? 1 : 0), __extension__ ({ if ((pvm ? (pvm)->hType & 0xF0000 : 0x00000) != 0x30000) ; else __assert_fail ("TYPE(pvm) != ID_OUT...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 3, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 2,...
transcoder-set#CHECK_REVERSING_SUB_ARRAY_MAKE_ARRAY_SORTED_prep#cmpfunc.c
transcoder-set
CHECK_REVERSING_SUB_ARRAY_MAKE_ARRAY_SORTED.c
cmpfunc
1
int cmpfunc (const void * a, const void * b) {return ( *(int*)a - *(int*)b );}
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
heman#mat4_prep#kmMat4GetForwardVec3RH.c
heman
mat4.c
kmMat4GetForwardVec3RH
6
kmVec3* kmMat4GetForwardVec3RH(kmVec3* pOut, const kmMat4* pIn) { kmVec3MultiplyMat4(pOut, &KM_VEC3_NEG_Z, pIn); kmVec3Normalize(pOut, pOut); return pOut; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
json.h#allow_inf_and_nan_prep#json_parse_object.c
json.h
allow_inf_and_nan.c
json_parse_object
89
void json_parse_object(struct json_parse_state_s *state, int is_global_object, struct json_object_s *object) { const size_t flags_bitset = state->flags_bitset; const size_t size = state->size; const char *const src = state->src; size_t elements = 0; int allow_comma = 0; struct json_ob...
{ "array_type": 0, "break_continue_statement": 3, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 13, "memory_management": 0, "memory_operation": 0, "pointer_type": 6, "return_statement": 0, "struct_type": 8, "switch_statement": 0, "type_casting": 1...
json.h#allow_simplified_json_prep#is_valid_unquoted_key_char.c
json.h
allow_simplified_json.c
is_valid_unquoted_key_char
4
int is_valid_unquoted_key_char(const char c) { return (('0' <= c && c <= '9') || ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('_' == c)); }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
rcs-5.10.1#rcsgen_prep#format_assocs.c
rcs-5.10.1
rcsgen.c
format_assocs
9
void format_assocs (FILE *out, char const *fmt) { for (struct link *ls = ((top->repository. r)-> symbols); ls; ls = ls->next) { struct symdef const *d = ls->entry; aprintf (out, fmt, d->meaningful, d->underlying); } }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 0, "memory_management": 0, "memory_operation": 0, "pointer_type": 2, "return_statement": 0, "struct_type": 1, "switch_statement": 0, "type_casting": 0,...