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
make-4.4.1#posixos_prep#jobserver_post_child.c
make-4.4.1
posixos.c
jobserver_post_child
9
void jobserver_post_child (int recursive) { if (recursive && js_type == js_pipe) { fd_noinherit (job_fds[0]); fd_noinherit (job_fds[1]); } }
{ "array_type": 1, "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,...
gprolog-1.5.0#stream_c_prep#Pl_Open_Output_Term_Stream_1.c
gprolog-1.5.0
stream_c.c
Pl_Open_Output_Term_Stream_1
7
void Pl_Open_Output_Term_Stream_1(WamWord stm_word) { int stm; stm = Pl_Add_Str_Stream(((void *)0), (pl_sys_var[0])); Pl_Get_Integer(stm, stm_word); }
{ "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": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
less-633#lesskey_prep#lesskey_parse_error.c
less-633
lesskey.c
lesskey_parse_error
4
void lesskey_parse_error(char *s) { fprintf(stderr, "%s\n", s); }
{ "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,...
make-4.4.1#hash_prep#hash_delete_items.c
make-4.4.1
hash.c
hash_delete_items
13
void hash_delete_items (struct hash_table *ht) { void **vec = ht->ht_vec; void **end = &vec[ht->ht_size]; for (; vec < end; vec++) *vec = 0; ht->ht_fill = 0; ht->ht_collisions = 0; ht->ht_lookups = 0; ht->ht_rehashes = 0; ht->ht_empty_slots = ht->ht_size; }
{ "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,...
transcoder-set#MAXIMUM_PROFIT_BY_BUYING_AND_SELLING_A_SHARE_AT_MOST_K_TIMES_prep#len.c
transcoder-set
MAXIMUM_PROFIT_BY_BUYING_AND_SELLING_A_SHARE_AT_MOST_K_TIMES.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,...
transcoder-set#NUMBER_N_DIGITS_NON_DECREASING_INTEGERS_prep#min.c
transcoder-set
NUMBER_N_DIGITS_NON_DECREASING_INTEGERS.c
min
1
int min(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,...
libxml2#xmlunicode_prep#xmlUCSIsCat.c
libxml2
xmlunicode.c
xmlUCSIsCat
8
int xmlUCSIsCat(int code, const char *cat) { xmlIntFunc *func; func = xmlUnicodeLookup(&xmlUnicodeCatTbl, cat); if (func == ((void *)0)) return (-1); return (func(code)); }
{ "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": 1,...
libxml2#encoding_prep#xmlOpenCharEncodingHandler.c
libxml2
encoding.c
xmlOpenCharEncodingHandler
5
int xmlOpenCharEncodingHandler(const char *name, int output, xmlCharEncodingHandler **out) { return(xmlCreateCharEncodingHandler(name, output, ((void *)0), ((void *)0), out)); }
{ "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,...
rcs-5.10.1#rcsrev_prep#take.c
rcs-5.10.1
rcsrev.c
take
14
struct cbuf take (size_t count, char const *ref) { struct cbuf rv; char const *end = ref; if (!count) count = -2 + (1U | (1 + countnumflds (ref))); while (count--) while (*end && '.' != *end++) continue; accumulate_range (single, ref, *end ? end - 1 : end); rv.string = finish_string (single, &...
{ "array_type": 0, "break_continue_statement": 1, "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": 0,...
transcoder-set#DIFFERENCE_MAXIMUM_SUM_MINIMUM_SUM_N_M_ELEMENTSIN_REVIEW_prep#min.c
transcoder-set
DIFFERENCE_MAXIMUM_SUM_MINIMUM_SUM_N_M_ELEMENTSIN_REVIEW.c
min
1
int min(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,...
tinycc#tccpp_prep#free_defines.c
tinycc
tccpp.c
free_defines
19
void free_defines(Sym *b) { while (define_stack != b) { Sym *top = define_stack; define_stack = top->prev; tok_str_free_str(top->d); define_undef(top); sym_free(top); } while (b) { int v = b->v; if (v >= 256 && v < tok_ident) { Sym **d = &t...
{ "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": 2, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
libcsv#libcsv_prep#csv_set_term_func.c
libcsv
libcsv.c
csv_set_term_func
5
void csv_set_term_func(struct csv_parser *p, int (*f)(unsigned char)) { if (p) p->is_term = f; }
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 1, "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,...
transcoder-set#MAXIMUM_SUM_BITONIC_SUBARRAY_prep#f_filled.c
transcoder-set
MAXIMUM_SUM_BITONIC_SUBARRAY.c
f_filled
1
int f_filled ( int arr [ ], int n ) {}
{ "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,...
tmux#key-bindings_prep#key_tables_RB_FIND.c
tmux
key-bindings.c
key_tables_RB_FIND
1
struct key_table * key_tables_RB_FIND(struct key_tables *head, struct key_table *elm) { struct key_table *tmp = (head)->rbh_root; int comp; while (tmp) { comp = key_table_cmp(elm, tmp); if (comp < 0) tmp = (tmp)->entry.rbe_left; else if (comp > 0) tmp = (tmp)->entry.rbe_right; else return (tmp); } 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": 1, "return_statement": 1, "struct_type": 1, "switch_statement": 0, "type_casting": 1,...
mcsim-6.2.0#simi_prep#FreeMCVar.c
mcsim-6.2.0
simi.c
FreeMCVar
7
int FreeMCVar (PVOID pData, PVOID pUserInfo) { PMCVAR pMCVar = (PMCVAR) pData; FreeList(&pMCVar->plistDependents, ((void *)0), 1); free(pMCVar->pszName); return 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": 1, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
transcoder-set#SWAP_BITS_IN_A_GIVEN_NUMBER_prep#max.c
transcoder-set
SWAP_BITS_IN_A_GIVEN_NUMBER.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,...
dap-3.10#daprun_prep#ask.c
dap-3.10
daprun.c
ask
13
int ask(char *question) { int c; do { fprintf(stderr, "%s? [y/q] ", question); c = getchar(); while (getchar() != '\n') ; if (c != 'y' && c != 'q') fprintf(stderr, "Invalid response. "); } while (c != 'y' && c != 'q'); return (c == 'y'); }
{ "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": 0,...
gprolog-1.5.0#g_var_inl_c_prep#Pl_Blt_G_Dec.c
gprolog-1.5.0
g_var_inl_c.c
Pl_Blt_G_Dec
7
void Pl_Blt_G_Dec(WamWord x) { Pl_Set_C_Bip_Name("g_dec", 1); G_Inc_Dec(x, -1, ((PlLong) (0) + ((PlULong)0)), ((PlLong) (0) + ((PlULong)0))); Pl_Unset_C_Bip_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,...
libxml2#types_prep#libxml_xmlXPathObjectPtrWrap.c
libxml2
types.c
libxml_xmlXPathObjectPtrWrap
69
PyObject * libxml_xmlXPathObjectPtrWrap(xmlXPathObjectPtr obj) { PyObject *ret; if (obj == ((void *)0)) { _Py_INCREF(((PyObject*)((&_Py_NoneStruct)))); return ((&_Py_NoneStruct)); } switch (obj->type) { case XPATH_XSLT_TREE: { if ((obj->nodesetval == ((void *)0)) || ...
{ "array_type": 1, "break_continue_statement": 4, "enum_type": 0, "for_loop": 2, "function_pointer": 0, "goto_statement": 0, "if_statement": 4, "memory_management": 0, "memory_operation": 0, "pointer_type": 2, "return_statement": 3, "struct_type": 0, "switch_statement": 1, "type_casting": 10...
tar-1.34#create_prep#finish_header.c
tar-1.34
create.c
finish_header
16
void finish_header (struct tar_stat_info *st, union block *header, off_t block_ordinal) { if (verbose_option && header->header.typeflag != 'K' && header->header.typeflag != 'L' && header->header.typeflag != 'x' && header->header.typeflag != 'g') { current_format = archive_for...
{ "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,...
libxml2#xmlunicode_prep#xmlUCSIsHighSurrogates.c
libxml2
xmlunicode.c
xmlUCSIsHighSurrogates
4
int xmlUCSIsHighSurrogates(int code) { return(((code >= 0xD800) && (code <= 0xDB7F))); }
{ "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,...
binn-3.0#binn_prep#binn_object_get_pair.c
binn-3.0
binn.c
binn_object_get_pair
3
BOOL binn_object_get_pair(void *ptr, int pos, char *pkey, binn *value) { return binn_read_pair(0xE2, ptr, pos, ((void *)0), pkey, value); }
{ "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,...
nettle-3.9.1#ecdsa-keygen_prep#nettle_ecdsa_generate_keypair.c
nettle-3.9.1
ecdsa-keygen.c
nettle_ecdsa_generate_keypair
15
void nettle_ecdsa_generate_keypair (struct ecc_point *pub, struct ecc_scalar *key, void *random_ctx, nettle_random_func *random) { mp_limb_t *p; const struct ecc_curve *ecc = pub->ecc; mp_size_t itch = 3*ecc->p.size + ecc->mul_g_itch; ((void) sizeof ((key->ecc == ecc) ? 1 : 0), __extension__ ({ if (key->e...
{ "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": 2, "return_statement": 0, "struct_type": 3, "switch_statement": 0, "type_casting": 2,...
transcoder-set#COUNT_INDEX_PAIRS_EQUAL_ELEMENTS_ARRAY_prep#sort.c
transcoder-set
COUNT_INDEX_PAIRS_EQUAL_ELEMENTS_ARRAY.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,...
dap-3.10#daprun_prep#main.c
dap-3.10
daprun.c
main
81
int main(int argc, char **argv) { int keep; int debug; int runstat; fputs("\nDap, Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.\n", stderr); fputs("Dap comes with ABSOLUTELY NO WARRANTY;\n", stderr); fputs("for details see the GNU Public License.\n", stderr); fputs("This is fr...
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 18, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 3...
transcoder-set#K_TH_DISTINCT_OR_NON_REPEATING_ELEMENT_IN_AN_ARRAY_prep#len.c
transcoder-set
K_TH_DISTINCT_OR_NON_REPEATING_ELEMENT_IN_AN_ARRAY.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,...
libosip2-5.3.1#osip_cseq_prep#osip_cseq_get_number.c
libosip2-5.3.1
osip_cseq.c
osip_cseq_get_number
3
char *osip_cseq_get_number(osip_cseq_t *cseq) { return cseq->number; }
{ "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#session_prep#session_select.c
tmux
session.c
session_select
7
int session_select(struct session *s, int idx) { struct winlink *wl; wl = winlink_find_by_index(&s->windows, idx); return (session_set_current(s, wl)); }
{ "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": 1, "return_statement": 1, "struct_type": 2, "switch_statement": 0, "type_casting": 0,...
tinycc#tccpp_prep#begin_macro.c
tinycc
tccpp.c
begin_macro
9
void begin_macro(TokenString *str, int alloc) { str->alloc = alloc; str->prev = macro_stack; str->prev_ptr = macro_ptr; str->save_line_num = file->line_num; macro_ptr = str->str; macro_stack = str; }
{ "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#xpath_prep#xmlXPathValueFlipSign.c
libxml2
xpath.c
xmlXPathValueFlipSign
7
void xmlXPathValueFlipSign(xmlXPathParserContextPtr ctxt) { if ((ctxt == ((void *)0)) || (ctxt->context == ((void *)0))) return; if ((ctxt->value != ((void *)0)) && (ctxt->value->type != XPATH_NUMBER)) xmlXPathNumberFunction(ctxt, 1);; if ((ctxt->value == ((void *)0)) || (ctxt->value->type != XPATH_NUMBER))...
{ "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": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 3,...
less-633#output_prep#linenumtoa.c
less-633
output.c
linenumtoa
1
void linenumtoa(LINENUM num, char *buf, int radix) { int neg = (num < 0); char tbuf[((sizeof(num) * 8 - 1) * 302 / 1000 + 1 + 1)+2]; char *s = tbuf + sizeof(tbuf); if (neg) num = -num; *--s = '\0'; do { *--s = "0123456789ABCDEF"[num % radix]; } while ((num /= radix) != 0); if (neg) *--s = '-'; strcpy(buf, s); }
{ "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": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
tmux#window_prep#window_pane_cmp.c
tmux
window.c
window_pane_cmp
5
int window_pane_cmp(struct window_pane *wp1, struct window_pane *wp2) { return (wp1->id - wp2->id); }
{ "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": 0,...
tinycc#tccgen_prep#type_size.c
tinycc
tccgen.c
type_size
43
int type_size(CType *type, int *a) { Sym *s; int bt; bt = type->t & 0x000f; if (bt == 7) { s = type->ref; *a = s->r; return s->c; } else if (bt == 5) { if (type->t & 0x0040) { int ts; s = type->ref; ts = type_size(&s->type, a); ...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 10, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 10, "struct_type": 0, "switch_statement": 0, "type_casting": ...
mcsim-6.2.0#simi_prep#McvFromLex.c
mcsim-6.2.0
simi.c
McvFromLex
36
int McvFromLex (PSTR szLex) { int ikwcode = GetKeywordCode(szLex, ((void *)0)); int iReturn; iReturn = (ikwcode == 210 ? 0 : ikwcode == 211 ? 1 : ikwcode == 212 ? 2 : ikwcode == 213 ? 3 : ikwcode == 229 ? 19 : ikwcode == 214 ? 4 : ikwco...
{ "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,...
libosip2-5.3.1#osip_port_prep#osip_clrncpy.c
libosip2-5.3.1
osip_port.c
osip_clrncpy
30
char *osip_clrncpy(char *dst, const char *src, size_t len) { const char *pbeg; const char *pend; char *p; size_t spaceless_length; if (src == ((void *)0) || len == 0) { *dst = '\0'; return ((void *)0); } pbeg = src; pbeg += strspn(pbeg, " \r\n\t"); pend = src + len - 1; while ((' ' == *pend)...
{ "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": 1, "pointer_type": 3, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 2,...
libxml2#libxml2-py_prep#libxml_xmlUCSIsCJKCompatibility.c
libxml2
libxml2-py.c
libxml_xmlUCSIsCJKCompatibility
13
PyObject * libxml_xmlUCSIsCJKCompatibility(PyObject *self __attribute__ ((__unused__)), PyObject *args) { PyObject *py_retval; int c_retval; int code; if (libxml_deprecationWarning("xmlUCSIsCJKCompatibility") == -1) return(((void *)0)); if (!_PyArg_ParseTuple_SizeT(args, (char *)"i:xmlUCSIsC...
{ "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_xmlUCSIsHangulJamo.c
libxml2
libxml2-py.c
libxml_xmlUCSIsHangulJamo
13
PyObject * libxml_xmlUCSIsHangulJamo(PyObject *self __attribute__ ((__unused__)), PyObject *args) { PyObject *py_retval; int c_retval; int code; if (libxml_deprecationWarning("xmlUCSIsHangulJamo") == -1) return(((void *)0)); if (!_PyArg_ParseTuple_SizeT(args, (char *)"i:xmlUCSIsHangulJamo", ...
{ "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,...
cflow-1.7#hash_prep#hash_get_max_bucket_length.c
cflow-1.7
hash.c
hash_get_max_bucket_length
19
size_t hash_get_max_bucket_length (const Hash_table *table) { struct hash_entry const *bucket; size_t max_bucket_length = 0; for (bucket = table->bucket; bucket < table->bucket_limit; bucket++) { if (bucket->data) { struct hash_entry const *cursor = bucket; size_t bucket_leng...
{ "array_type": 0, "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": 2, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
gprolog-1.5.0#c_supp_prep#Pl_Check_For_Un_Number.c
gprolog-1.5.0
c_supp.c
Pl_Check_For_Un_Number
5
void Pl_Check_For_Un_Number(WamWord start_word) { WamWord word, tag_mask; 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 (word != deref_last_word); } while (0); ...
{ "array_type": 0, "break_continue_statement": 1, "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,...
binn-3.0#binn_prep#binn_map.c
binn-3.0
binn.c
binn_map
3
binn * binn_map() { return binn_new(0xE1, 0, 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,...
tar-1.34#buffer_prep#first_decompress_program.c
tar-1.34
buffer.c
first_decompress_program
12
const char * first_decompress_program (int *pstate) { struct zip_program const *zp; if (use_compress_program_option) return use_compress_program_option; if (archive_compression_type == ct_none) return ((void *)0); *pstate = 0; zp = find_zip_program (archive_compression_type, pstate); return zp ? zp-...
{ "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,...
tmux#options_prep#options_array_assign.c
tmux
options.c
options_array_assign
23
void options_array_assign(struct options_entry *o, const char *s) { const char *separator; char *copy, *next, *string; u_int i; separator = o->tableentry->separator; if (separator == ((void *)0)) separator = " ,"; copy = string = xstrdup(s); while ((next = strsep(&string, separator)) != ((void *)0)) { if (*n...
{ "array_type": 1, "break_continue_statement": 3, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 4, "memory_management": 1, "memory_operation": 0, "pointer_type": 4, "return_statement": 0, "struct_type": 1, "switch_statement": 0, "type_casting": 3,...
tulipindicators-0.9.1#linreg_prep#ti_linreg_start.c
tulipindicators-0.9.1
linreg.c
ti_linreg_start
3
int ti_linreg_start(double const *options) { return (int)options[0]-1; }
{ "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,...
libxml2#xmlreader_prep#xmlTextReaderLookupNamespace.c
libxml2
xmlreader.c
xmlTextReaderLookupNamespace
17
xmlChar * xmlTextReaderLookupNamespace(xmlTextReaderPtr reader, const xmlChar *prefix) { xmlNsPtr ns; int result; if (reader == ((void *)0)) return(((void *)0)); if (reader->node == ((void *)0)) return(((void *)0)); result = xmlSearchNsSafe(reader->node, prefix, &ns); if (result < 0) { ...
{ "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": 5, "struct_type": 0, "switch_statement": 0, "type_casting": 7,...
libxml2#chvalid_prep#xmlIsIdeographic.c
libxml2
chvalid.c
xmlIsIdeographic
4
int xmlIsIdeographic(unsigned int ch) { return((((ch) < 0x100) ? 0 : (((0x4e00 <= (ch)) && ((ch) <= 0x9fa5)) || ((ch) == 0x3007) || ((0x3021 <= (ch)) && ((ch) <= 0x3029))))); }
{ "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,...
snudown#stack_prep#stack_free.c
snudown
stack.c
stack_free
10
void stack_free(struct stack *st) { if (!st) return; free(st->item); st->item = ((void *)0); st->size = 0; st->asize = 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": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 1, "switch_statement": 0, "type_casting": 1,...
findutils-4.9.0#findutils-version_prep#display_findutils_version.c
findutils-4.9.0
findutils-version.c
display_findutils_version
11
void display_findutils_version (const char *official_name) { rpl_fflush (stderr); version_etc (stdout, official_name, "GNU findutils", version_string, gettext ("Eric B. Decker"), gettext ("James Youngman"), gettext ("Kevin Dalley"), (const char*) ((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": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
dap-3.10#ps_prep#pict_page.c
dap-3.10
ps.c
pict_page
13
void pict_page() { if (pageno) { fputs("gr\n", pict_out); fputs("showpage\n", pict_out); } pageno++; fprintf(pict_out, "%%%%Page: %d %d\n", pageno, pageno); fputs("gs\n", pict_out); if (orient == 'l') fprintf(pict_out, "%d %d tr 90 rot %d %d tr\n", bboxy0 + bboxx1, bboxy0, -bboxx0, -bb...
{ "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": 0,...
json.h#allow_json5_prep#json_parse_string.c
json.h
allow_json5.c
json_parse_string
102
void json_parse_string(struct json_parse_state_s *state, struct json_string_s *string) { size_t offset = state->offset; size_t bytes_written = 0; const char *const src = state->src; const char quote_to_use = '\'' == src[offset] ? '\'' : '"'; char *data = state->data; unsigned long hig...
{ "array_type": 1, "break_continue_statement": 12, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 7, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 2, "struct_type": 2, "switch_statement": 1, "type_casting": 1...
libosip2-5.3.1#osip_authentication_info_prep#osip_authentication_info_init.c
libosip2-5.3.1
osip_authentication_info.c
osip_authentication_info_init
7
int osip_authentication_info_init(osip_authentication_info_t **dest) { *dest = (osip_authentication_info_t *) (osip_malloc_func ? osip_malloc_func(sizeof(osip_authentication_info_t)) : malloc(sizeof(osip_authentication_info_t))); if (*dest == ((void *)0)) return -4; memset(*dest, 0, sizeof(osip_authentication...
{ "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,...
libxml2#libxml2-py_prep#libxml_xmlXPathErr.c
libxml2
libxml2-py.c
libxml_xmlXPathErr
12
PyObject * libxml_xmlXPathErr(PyObject *self __attribute__ ((__unused__)), PyObject *args) { xmlXPathParserContextPtr ctxt; PyObject *pyobj_ctxt; int code; if (!_PyArg_ParseTuple_SizeT(args, (char *)"Oi:xmlXPathErr", &pyobj_ctxt, &code)) return(((void *)0)); ctxt = (xmlXPathParserContextPtr)...
{ "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,...
transcoder-set#CHECK_GIVEN_CIRCLE_LIES_COMPLETELY_INSIDE_RING_FORMED_TWO_CONCENTRIC_CIRCLES_prep#sort.c
transcoder-set
CHECK_GIVEN_CIRCLE_LIES_COMPLETELY_INSIDE_RING_FORMED_TWO_CONCENTRIC_CIRCLES.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,...
tar-1.34#misc_prep#blocking_write.c
tar-1.34
misc.c
blocking_write
16
size_t blocking_write (int fd, void const *buf, size_t count) { size_t bytes = full_write (fd, buf, count); if (bytes < count && (*__errno_location ()) == 11) { int flags = rpl_fcntl (fd, 3); if (0 <= flags && flags & 04000 && rpl_fcntl (fd, 4, flags & ~04000) != -1) { char const *buffer = bu...
{ "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": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
libxml2#xmlstring_prep#xmlStrcat.c
libxml2
xmlstring.c
xmlStrcat
9
xmlChar * xmlStrcat(xmlChar *cur, const xmlChar *add) { const xmlChar *p = add; if (add == ((void *)0)) return(cur); if (cur == ((void *)0)) return(xmlStrdup(add)); while (*p != 0) p++; return(xmlStrncat(cur, add, p - add)); }
{ "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,...
sed-4.9#nanosleep_prep#rpl_nanosleep.c
sed-4.9
nanosleep.c
rpl_nanosleep
33
int rpl_nanosleep (const struct timespec *requested_delay, struct timespec *remaining_delay) { if (requested_delay->tv_nsec < 0 || BILLION <= requested_delay->tv_nsec) { (*__errno_location ()) = 22; return -1; } { _Static_assert (((time_t) (! (! ((time_t) 0 < (time_t) -1)) ? (time...
{ "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": 2, "switch_statement": 0, "type_casting": 0,...
heman#vec2_prep#kmVec2Div.c
heman
vec2.c
kmVec2Div
7
kmVec2* kmVec2Div( kmVec2* pOut,const kmVec2* pV1, const kmVec2* pV2 ) { if ( pV2->x && pV2->y ){ pOut->x = pV1->x / pV2->x; pOut->y = pV1->y / pV2->y; } return pOut; }
{ "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": 0,...
transcoder-set#COUNT_PALINDROMIC_SUBSEQUENCE_GIVEN_STRING_prep#max.c
transcoder-set
COUNT_PALINDROMIC_SUBSEQUENCE_GIVEN_STRING.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,...
gprolog-1.5.0#stream_supp_prep#Pl_Stream_Puts.c
gprolog-1.5.0
stream_supp.c
Pl_Stream_Puts
13
int Pl_Stream_Puts(char *str, StmInf *pstm) { char *p; int c; for (p = str; *p; p++) { c = *p; Basic_Call_Fct_Putc(c, pstm); if (c != (-1)) pstm->char_count++; if (c == '\n') { pstm->line_count++; pstm->line_pos = 0; } else pstm->line_pos++; } return p - str; }
{ "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": 1, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
transcoder-set#SUM_FIBONACCI_NUMBERS_prep#min.c
transcoder-set
SUM_FIBONACCI_NUMBERS.c
min
1
int min(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,...
transcoder-set#MAXIMUM_NUMBER_OF_SQUARES_THAT_CAN_BE_FIT_IN_A_RIGHT_ANGLE_ISOSCELES_TRIANGLE_prep#max.c
transcoder-set
MAXIMUM_NUMBER_OF_SQUARES_THAT_CAN_BE_FIT_IN_A_RIGHT_ANGLE_ISOSCELES_TRIANGLE.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,...
transcoder-set#DYNAMIC_PROGRAMMING_SET_10_0_1_KNAPSACK_PROBLEM_prep#len.c
transcoder-set
DYNAMIC_PROGRAMMING_SET_10_0_1_KNAPSACK_PROBLEM.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_htmlCreateMemoryParserCtxt.c
libxml2
libxml2-py.c
libxml_htmlCreateMemoryParserCtxt
13
PyObject * libxml_htmlCreateMemoryParserCtxt(PyObject *self __attribute__ ((__unused__)), PyObject *args) { PyObject *py_retval; htmlParserCtxtPtr c_retval; char * buffer; Py_ssize_t py_buffsize0; int size; if (!_PyArg_ParseTuple_SizeT(args, (char *)"s#i:htmlCreateMemoryParserCtxt", &buffer, &py...
{ "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,...
transcoder-set#MAXIMUM_HEIGHT_OF_TRIANGULAR_ARRANGEMENT_OF_ARRAY_VALUES_prep#len.c
transcoder-set
MAXIMUM_HEIGHT_OF_TRIANGULAR_ARRANGEMENT_OF_ARRAY_VALUES.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,...
mtools-4.0.43#privileges_prep#destroy_privs.c
mtools-4.0.43
privileges.c
destroy_privs
10
void destroy_privs(void) { if(euid == 0) { setuid(0); setuid(ruid); seteuid(ruid); } drop_privs(); print_privs("destroy_privs, no uid should be zero "); }
{ "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": 1,...
findutils-4.9.0#pred_prep#pred_size.c
findutils-4.9.0
pred.c
pred_size
24
_Bool pred_size (const char *pathname, struct stat *stat_buf, struct predicate *pred_ptr) { uintmax_t f_val; (void) pathname; f_val = ((stat_buf->st_size / pred_ptr->args.size.blocksize) + (stat_buf->st_size % pred_ptr->args.size.blocksize != 0)); switch (pred_ptr->args.size.kind) { case COMP_GT: ...
{ "array_type": 0, "break_continue_statement": 3, "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": 1, "switch_statement": 1, "type_casting": 1,...
less-633#os_prep#supports_ctrl_x.c
less-633
os.c
supports_ctrl_x
4
int supports_ctrl_x(void) { return (use_poll); }
{ "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_xmlParserSetPedantic.c
libxml2
libxml2-py.c
libxml_xmlParserSetPedantic
14
PyObject * libxml_xmlParserSetPedantic(PyObject *self __attribute__ ((__unused__)), PyObject *args) { xmlParserCtxtPtr ctxt; PyObject *pyobj_ctxt; int pedantic; if (libxml_deprecationWarning("xmlParserSetPedantic") == -1) return(((void *)0)); if (!_PyArg_ParseTuple_SizeT(args, (char *)"Oi:xm...
{ "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,...
json.h#allow_leading_or_trailing_decimal_point_prep#json_write_minified_get_object_size.c
json.h
allow_leading_or_trailing_decimal_point.c
json_write_minified_get_object_size
18
int json_write_minified_get_object_size(const struct json_object_s *object, size_t *size) { struct json_object_element_s *element; *size += 2; *size += object->length; if (1 < object->length) { *size += object->length - 1; } for (element = object->start; 0 != elem...
{ "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,...
transcoder-set#MINIMUM_PERIMETER_N_BLOCKS_prep#f_filled.c
transcoder-set
MINIMUM_PERIMETER_N_BLOCKS.c
f_filled
1
int f_filled ( int n ) {}
{ "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,...
optipng-0.7.8#pnmout_prep#pnm_fput_values.c
optipng-0.7.8
pnmout.c
pnm_fput_values
102
int pnm_fput_values(const pnm_struct *pnm_ptr, const unsigned int *sample_values, unsigned int num_rows, FILE *stream) { unsigned int format = pnm_ptr->format; unsigned int depth = pnm_ptr->depth; unsigned int width = pnm_ptr->width; unsigned i...
{ "array_type": 1, "break_continue_statement": 13, "enum_type": 0, "for_loop": 7, "function_pointer": 0, "goto_statement": 0, "if_statement": 16, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 3, "struct_type": 0, "switch_statement": 1, "type_casting": ...
nettle-3.9.1#write-le64_prep#_nettle_write_le64.c
nettle-3.9.1
write-le64.c
_nettle_write_le64
23
void _nettle_write_le64(size_t length, uint8_t *dst, const uint64_t *src) { size_t i; size_t words; unsigned leftover; words = length / 8; leftover = length % 8; for (i = 0; i < words; i++, dst += 8) do { (dst)[7] = ((src[i]) >> 56) & 0xff; (dst)[6] = ((src[i]) >> 48) & 0xff; (dst)[5] = ((src[i]) >...
{ "array_type": 1, "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": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
tulipindicators-0.9.1#tiamalgamation_prep#ti_kvo_start.c
tulipindicators-0.9.1
tiamalgamation.c
ti_kvo_start
4
int ti_kvo_start(double const *options) { (void)options; return 1; }
{ "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,...
enscript-1.6.6#prt_lpr_prep#printer_open.c
enscript-1.6.6
prt_lpr.c
printer_open
24
FILE * printer_open(char *cmd, char *options, char *queue_param, char *printer_name, void **context_return) { Buffer pipe_cmd; FILE *fp; buffer_init(&pipe_cmd); buffer_append(&pipe_cmd, cmd); buffer_append(&pipe_cmd, " "); if (options) { buffer_append(&pipe_cmd, options); buffer_append...
{ "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": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
transcoder-set#SUM_OF_ALL_ELEMENTS_UP_TO_NTH_ROW_IN_A_PASCALS_TRIANGLE_1_prep#f_gold.c
transcoder-set
SUM_OF_ALL_ELEMENTS_UP_TO_NTH_ROW_IN_A_PASCALS_TRIANGLE_1.c
f_gold
5
long long int f_gold ( int n ) { long long int sum = 0; sum = 1 << n; return ( sum - 1 ); }
{ "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_THE_LARGEST_SUBARRAY_WITH_0_SUM_prep#min.c
transcoder-set
FIND_THE_LARGEST_SUBARRAY_WITH_0_SUM.c
min
1
int min(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,...
dap-3.10#dap5_prep#logreg.c
dap-3.10
dap5.c
logreg
164
void logreg( char *fname, char *yspec, char *x0list, char *x1list, char *marks, char *xname, double level ) { char *regname; int *varv; int *xvarv; int nx0, nx1; int nx; int nxx; int *markv; int *xmarkv; int nmark; double *xmem; double **x; double *ymem; ...
{ "array_type": 10, "break_continue_statement": 0, "enum_type": 0, "for_loop": 6, "function_pointer": 0, "goto_statement": 0, "if_statement": 10, "memory_management": 0, "memory_operation": 0, "pointer_type": 12, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting":...
gawk-5.2.2#mpfr_prep#mpg_node.c
gawk-5.2.2
mpfr.c
mpg_node
10
NODE * mpg_node(unsigned int flags) { NODE *r = make_number_node(flags); if (flags == MPFN) mpfr_init(r->sub.val.nm.mpnum); else __gmpz_init(r->sub.val.nm.mpi); return r; }
{ "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": 0,...
transcoder-set#HORNERS_METHOD_POLYNOMIAL_EVALUATION_prep#sort.c
transcoder-set
HORNERS_METHOD_POLYNOMIAL_EVALUATION.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,...
transcoder-set#MIDDLE_OF_THREE_USING_MINIMUM_COMPARISONS_2_prep#max.c
transcoder-set
MIDDLE_OF_THREE_USING_MINIMUM_COMPARISONS_2.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,...
units-2.22#units_prep#hassubscript.c
units-2.22
units.c
hassubscript
13
int hassubscript(const char *str) { const char *ptr = &(*((str)+strlen(str)-1)); while (ptr>str){ if (!strchr(digits, *ptr)) return 0; ptr--; if (*ptr=='_') 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": 0, "switch_statement": 0, "type_casting": 0,...
tulipindicators-0.9.1#tiamalgamation_prep#ti_sin.c
tulipindicators-0.9.1
tiamalgamation.c
ti_sin
1
int ti_sin(int size, double const *const *inputs, double const *options, double *const *outputs) { const double *in1 = inputs[0]; (void)options; double *output = outputs[0]; int i; for (i = 0; i < size; ++i) { output[i] = (sin(in1[i])); } return 0; }
{ "array_type": 4, "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": 3, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
gprolog-1.5.0#src_rdr_c_prep#Pl_SR_Check_Descriptor_1.c
gprolog-1.5.0
src_rdr_c.c
Pl_SR_Check_Descriptor_1
5
void Pl_SR_Check_Descriptor_1(WamWord desc_word) { Get_Descriptor(desc_word, 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": 0,...
mcsim-6.2.0#mh_prep#PrintTemperatureDiagnostics.c
mcsim-6.2.0
mh.c
PrintTemperatureDiagnostics
26
void PrintTemperatureDiagnostics (PFILE fOut, PGIBBSDATA pgd) { register int i; fprintf (fOut, "\nPerks:"); for (i = pgd->startT; i <= pgd->endT; i++) { fprintf (fOut, "\t%g", pgd->rgdPerks[i]); } fprintf (fOut, "\nCounts:"); for (i = pgd->startT; i <= pgd->endT; i++) { fprintf (fOut, "\t%ld", pgd->...
{ "array_type": 5, "break_continue_statement": 0, "enum_type": 0, "for_loop": 5, "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,...
json.h#allow_simplified_json_prep#json_extract_get_number_size.c
json.h
allow_simplified_json.c
json_extract_get_number_size
7
struct json_extract_result_s json_extract_get_number_size(const struct json_number_s *const number) { struct json_extract_result_s result; result.dom_size = sizeof(struct json_number_s); result.data_size = number->number_size; 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,...
binn-3.0#binn_prep#binn_is_valid.c
binn-3.0
binn.c
binn_is_valid
6
BOOL binn_is_valid(void *ptr, int *ptype, int *pcount, int *psize) { if (ptype) *ptype = 0; if (pcount) *pcount = 0; if (psize) *psize = 0; return binn_is_valid_ex(ptr, ptype, pcount, psize); }
{ "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": 0,...
gprolog-1.5.0#oper_supp_prep#Pl_Full_Var_Power_2.c
gprolog-1.5.0
oper_supp.c
Pl_Full_Var_Power_2
39
void Pl_Full_Var_Power_2(Range *y, Range *x) { unsigned x2; int i, vec_elem; x2 = x->min * x->min; do { y->vec = (Vector) (((WamWordP *) pl_reg_bank)[256 +3]); (((WamWordP *) pl_reg_bank)[256 +3]) += pl_vec_size; } while (0); if (x2 > (unsigned) pl_vec_max_integer) { y->extra_cstr = 1; (y)->ma...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 2, "function_pointer": 0, "goto_statement": 2, "if_statement": 5, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 5,...
libxml2#xpath_prep#xmlXPathNsLookup.c
libxml2
xpath.c
xmlXPathNsLookup
18
const xmlChar * xmlXPathNsLookup(xmlXPathContextPtr ctxt, const xmlChar *prefix) { if (ctxt == ((void *)0)) return(((void *)0)); if (prefix == ((void *)0)) return(((void *)0)); if (xmlStrEqual(prefix, (const xmlChar *) "xml")) return((const xmlChar *) "http://www.w3.org/XML/1998/namespace"); if (ctxt...
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 5, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 5, "struct_type": 0, "switch_statement": 0, "type_casting": 6,...
wget-1.21.4#ftp-basic_prep#ftp_cwd.c
wget-1.21.4
ftp-basic.c
ftp_cwd
30
uerr_t ftp_cwd (int csock, const char *dir) { char *request, *respline; int nwritten; uerr_t err; request = ftp_request ("CWD", dir); nwritten = fd_write (csock, request, strlen (request), -1); if (nwritten < 0) { do { free ((void *) (request)); request = ((void *)0); } while (0); return WRI...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 4, "memory_management": 5, "memory_operation": 0, "pointer_type": 2, "return_statement": 5, "struct_type": 0, "switch_statement": 0, "type_casting": 5,...
transcoder-set#MAXIMUM_LENGTH_SUBSEQUENCE_DIFFERENCE_ADJACENT_ELEMENTS_EITHER_0_1_prep#f_filled.c
transcoder-set
MAXIMUM_LENGTH_SUBSEQUENCE_DIFFERENCE_ADJACENT_ELEMENTS_EITHER_0_1.c
f_filled
1
int f_filled ( int arr [ ], int n ) {}
{ "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#ict_fsm_prep#osip_ict_timeout_b_event.c
libosip2-5.3.1
ict_fsm.c
osip_ict_timeout_b_event
11
void osip_ict_timeout_b_event(osip_transaction_t *ict, osip_event_t *evt) { ict->ict_context->timer_b_length = -1; ict->ict_context->timer_b_start.tv_sec = -1; if (ict->out_socket == -999) { ict_handle_transport_error(ict, -1); } else { __osip_message_callback(OSIP_ICT_STATUS_TIMEOUT, ict, evt->sip); ...
{ "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,...
nano-7.2#text_prep#copy_completion.c
nano-7.2
text.c
copy_completion
12
char *copy_completion(char *text) { char *word; size_t length = 0, index = 0; while (is_word_char(&text[length], 0)) length = step_right(text, length); word = nmalloc(length + 1); while (index < length) word[index++] = *(text++); word[index] = '\0'; return word; }
{ "array_type": 2, "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": 1, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
optipng-0.7.8#gifread_prep#GIFGetColorTable.c
optipng-0.7.8
gifread.c
GIFGetColorTable
23
void GIFGetColorTable(unsigned char **colors, unsigned int *numColors, struct GIFImage *image) { struct GIFScreen *screen; if (image->LocalColorFlag) { ((void)0); *colors = image->LocalColorTable; *numColors = image->LocalNumColors; return; } scr...
{ "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": 2, "struct_type": 2, "switch_statement": 0, "type_casting": 3,...
bc-1.07.1#scan_prep#yy_flush_buffer.c
bc-1.07.1
scan.c
yy_flush_buffer
13
void yy_flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; b->yy_ch_buf[0] = 0; b->yy_ch_buf[1] = 0; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = 0; if ( b == ( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buffer_stack_top)] : ((void *)0)) ) yy_load_buffe...
{ "array_type": 1, "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": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
make-4.4.1#job_prep#new_job.c
make-4.4.1
job.c
new_job
155
void new_job (struct file *file) { struct commands *cmds = file->cmds; struct child *c; char **lines; unsigned int i; start_waiting_jobs (); reap_children (0, 0); chop_commands (cmds); c = xcalloc (sizeof (struct child)); output_init (&c->output); c->file = file; c->sh_batch_file = ((void *)0); ...
{ "array_type": 4, "break_continue_statement": 4, "enum_type": 0, "for_loop": 4, "function_pointer": 0, "goto_statement": 0, "if_statement": 25, "memory_management": 1, "memory_operation": 2, "pointer_type": 13, "return_statement": 1, "struct_type": 4, "switch_statement": 0, "type_casting": ...
cflow-1.7#symbol_prep#next_starter.c
cflow-1.7
symbol.c
next_starter
18
Symbol * next_starter(void *itr) { struct linked_list_entry *p; if (!itr) return ((void *)0); p = *(void**)itr; while (p) { Symbol *sym = p->data; if (sym->type != SymUndefined) { *(void**)itr = p->next; return sym; } p = p->next; } *(void**)itr = ((void *)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": 2, "return_statement": 3, "struct_type": 1, "switch_statement": 0, "type_casting": 3,...
transcoder-set#SUM_PAIRWISE_PRODUCTS_prep#min.c
transcoder-set
SUM_PAIRWISE_PRODUCTS.c
min
1
int min(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,...
transcoder-set#MINIMAL_OPERATIONS_MAKE_NUMBER_MAGICAL_prep#cmpfunc.c
transcoder-set
MINIMAL_OPERATIONS_MAKE_NUMBER_MAGICAL.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,...
libxml2#types_prep#libxml_doubleWrap.c
libxml2
types.c
libxml_doubleWrap
7
PyObject * libxml_doubleWrap(double val) { PyObject *ret; ret = PyFloat_FromDouble((double) val); return (ret); }
{ "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": 1, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
tinycc#x86_64-gen_prep#gen_addrpc32.c
tinycc
x86_64-gen.c
gen_addrpc32
6
void gen_addrpc32(int r, Sym *sym, int c) { if (r & 0x0200) greloca(cur_text_section, sym, ind, 2, c-4), c=4; gen_le32(c-4); }
{ "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,...
nettle-3.9.1#sexp2dsa_prep#nettle_dsa_sha1_keypair_from_sexp.c
nettle-3.9.1
sexp2dsa.c
nettle_dsa_sha1_keypair_from_sexp
14
int nettle_dsa_sha1_keypair_from_sexp(struct dsa_params *params, mpz_t pub, mpz_t priv, unsigned p_max_bits, size_t length, const uint8_t *expr) { struct sexp_iterator i; return nettle_sexp_iterator_first(&i, length, expr) && nettle_sexp_iterator_check_type(&i, priv ? "private-key" : "pu...
{ "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": 0,...