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
libxml2#libxml2-py_prep#libxml_xmlUCSIsOsmanya.c
libxml2
libxml2-py.c
libxml_xmlUCSIsOsmanya
13
PyObject * libxml_xmlUCSIsOsmanya(PyObject *self __attribute__ ((__unused__)), PyObject *args) { PyObject *py_retval; int c_retval; int code; if (libxml_deprecationWarning("xmlUCSIsOsmanya") == -1) return(((void *)0)); if (!_PyArg_ParseTuple_SizeT(args, (char *)"i:xmlUCSIsOsmanya", &code)) ...
{ "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#SUM_OF_ALL_PROPER_DIVISORS_OF_A_NATURAL_NUMBER_prep#sort.c
transcoder-set
SUM_OF_ALL_PROPER_DIVISORS_OF_A_NATURAL_NUMBER.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,...
libosip2-5.3.1#osip_authentication_info_prep#osip_authentication_info_set_qop_options.c
libosip2-5.3.1
osip_authentication_info.c
osip_authentication_info_set_qop_options
3
void osip_authentication_info_set_qop_options(osip_authentication_info_t *authentication_info, char *qop_options) { authentication_info->qop_options = (char *) qop_options; }
{ "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,...
nettle-3.9.1#siv-cmac-aes256_prep#nettle_siv_cmac_aes256_set_key.c
nettle-3.9.1
siv-cmac-aes256.c
nettle_siv_cmac_aes256_set_key
5
void nettle_siv_cmac_aes256_set_key(struct siv_cmac_aes256_ctx *ctx, const uint8_t *key) { nettle_siv_cmac_set_key(&ctx->cmac_key, &ctx->cmac_cipher, &ctx->ctr_cipher, &nettle_aes256, key); }
{ "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,...
hello-2.12.1#quotearg_prep#quote_n_mem.c
hello-2.12.1
quotearg.c
quote_n_mem
5
char const * quote_n_mem (int n, char const *arg, size_t argsize) { return quotearg_n_options (n, arg, argsize, &quote_quoting_options); }
{ "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#xmlreader_prep#xmlTextReaderAttributeCount.c
libxml2
xmlreader.c
xmlTextReaderAttributeCount
32
int xmlTextReaderAttributeCount(xmlTextReaderPtr reader) { int ret; xmlAttrPtr attr; xmlNsPtr ns; xmlNodePtr node; if (reader == ((void *)0)) return(-1); if (reader->node == ((void *)0)) return(0); if (reader->curnode != ((void *)0)) node = reader->curnode; else node = reader->node; ...
{ "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": 5, "struct_type": 0, "switch_statement": 0, "type_casting": 5,...
transcoder-set#COUNT_SUBSTRINGS_WITH_SAME_FIRST_AND_LAST_CHARACTERS_prep#f_gold.c
transcoder-set
COUNT_SUBSTRINGS_WITH_SAME_FIRST_AND_LAST_CHARACTERS.c
f_gold
10
int f_gold ( char s [] ) { int result = 0; int n = strlen(s); for ( int i = 0; i < n; i ++ ) for ( int j = i; j < n; j ++ ) if ( s [ i ] == s [ j ] ) result ++; return result; }
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 2, "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,...
pth-2.0.7#pth_msg_prep#pth_msgport_pending.c
pth-2.0.7
pth_msg.c
pth_msgport_pending
6
int pth_msgport_pending(pth_msgport_t mp) { if (mp == ((void *)0)) return ((*__errno_location ()) = (22), (-1)); return ((&mp->mp_queue) == ((void *)0) ? (-1) : (&mp->mp_queue)->r_nodes); }
{ "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,...
transcoder-set#MINIMUM_SUM_TWO_NUMBERS_FORMED_DIGITS_ARRAY_2_prep#min.c
transcoder-set
MINIMUM_SUM_TWO_NUMBERS_FORMED_DIGITS_ARRAY_2.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,...
quadtree-0.1.0#bounds_prep#quadtree_bounds_new.c
quadtree-0.1.0
bounds.c
quadtree_bounds_new
11
quadtree_bounds_t* quadtree_bounds_new(){ quadtree_bounds_t *bounds; if((bounds = malloc(sizeof(*bounds))) == ((void *)0)) return ((void *)0); bounds->nw = quadtree_point_new((__builtin_inff ()), -(__builtin_inff ())); bounds->se = quadtree_point_new(-(__builtin_inff ()), (__builtin_inff ())); bounds->wid...
{ "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": 1, "return_statement": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 2,...
libosip2-5.3.1#osip_error_info_prep#osip_message_set_error_info.c
libosip2-5.3.1
osip_error_info.c
osip_message_set_error_info
17
int osip_message_set_error_info(osip_message_t *sip, const char *hvalue) { osip_error_info_t *error_info; int i; if (hvalue == ((void *)0) || hvalue[0] == '\0') return 0; i = osip_call_info_init(&error_info); if (i != 0) return i; i = osip_call_info_parse(error_info, hvalue); if (i != 0) { osi...
{ "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": 1, "return_statement": 4, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
optipng-0.7.8#pngget_prep#png_get_tRNS.c
optipng-0.7.8
pngget.c
png_get_tRNS
37
png_uint_32 png_get_tRNS(png_const_structrp png_ptr, png_inforp info_ptr, png_bytep *trans_alpha, int *num_trans, png_color_16p *trans_color) { png_uint_32 retval = 0; if (png_ptr != ((void *)0) && info_ptr != ((void *)0) && (info_ptr->valid & 0x0010U) != 0) { ((void)0); if (info_ptr->co...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 7, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 8,...
transcoder-set#FIND_PATTERNS_101_GIVEN_STRING_prep#max.c
transcoder-set
FIND_PATTERNS_101_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,...
less-633#position_prep#pos_clear.c
less-633
position.c
pos_clear
6
void pos_clear(void) { int i; for (i = 0; i < sc_height; i++) table[i] = ((POSITION)(-1)); }
{ "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": 1,...
screen-4.9.0#encoding_prep#LoadFontTranslationsForEncoding.c
screen-4.9.0
encoding.c
LoadFontTranslationsForEncoding
15
void LoadFontTranslationsForEncoding(encoding) int encoding; { char *c; int f; do {} while (0); if ((c = encodings[encoding].fontlist) != 0) while ((f = (unsigned char)*c++) != 0) if (recodetabs[f].flags == 0) LoadFontTranslation(f, 0); f = encodings[encoding].deffont; if (f > 0 && recodetabs[f...
{ "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": 1, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
gprolog-1.5.0#c_supp_prep#Pl_Un_Codes_Check.c
gprolog-1.5.0
c_supp.c
Pl_Un_Codes_Check
6
Bool Pl_Un_Codes_Check(char *str, WamWord start_word) { Pl_Check_For_Un_Codes(start_word); return Pl_Un_Codes(str, start_word); }
{ "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,...
mtools-4.0.43#fat_prep#getfreeMinBytes.c
mtools-4.0.43
fat.c
getfreeMinBytes
14
int getfreeMinBytes(Stream_t *Dir, mt_off_t size) { Stream_t *Stream = GetFs(Dir); Fs_t *This = (Fs_t *) Stream; mt_off_t size2; size2 = size / (This->sector_size * This->cluster_size); if(size % (This->sector_size * This->cluster_size)) size2++; if((smt_off_t)size2 > (4294967295U)) { fprintf(stderr, "Request...
{ "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": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
transcoder-set#COUNT_DIGITS_FACTORIAL_SET_1_prep#main.c
transcoder-set
COUNT_DIGITS_FACTORIAL_SET_1.c
main
14
int main(void) { int n_success = 0; int param0[] = {66,7,55,37,76,16,17,95,71,90}; 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 0...
{ "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#libxml2-py_prep#libxml_xmlValidateQName.c
libxml2
libxml2-py.c
libxml_xmlValidateQName
12
PyObject * libxml_xmlValidateQName(PyObject *self __attribute__ ((__unused__)), PyObject *args) { PyObject *py_retval; int c_retval; xmlChar * value; int space; if (!_PyArg_ParseTuple_SizeT(args, (char *)"zi:xmlValidateQName", &value, &space)) return(((void *)0)); c_retval = xmlValidateQ...
{ "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,...
libosip2-5.3.1#osip_body_prep#osip_body_clone.c
libosip2-5.3.1
osip_body.c
osip_body_clone
31
int osip_body_clone(const osip_body_t *body, osip_body_t **dest) { int i; osip_body_t *copy; if (body == ((void *)0) || body->length <= 0) return -2; i = osip_body_init(&copy); if (i != 0) return i; copy->body = (char *) (osip_malloc_func ? osip_malloc_func(body->length + 2) : malloc(body->length + ...
{ "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": 1, "pointer_type": 1, "return_statement": 6, "struct_type": 0, "switch_statement": 0, "type_casting": 4,...
gprolog-1.5.0#error_supp_prep#Pl_Set_C_Bip_Name.c
gprolog-1.5.0
error_supp.c
Pl_Set_C_Bip_Name
6
void Pl_Set_C_Bip_Name(char *func_str, int arity) { c_bip_func_str = func_str; c_bip_arity = arity; }
{ "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#xmlreader_prep#xmlTextReaderSetResourceLoader.c
libxml2
xmlreader.c
xmlTextReaderSetResourceLoader
9
void xmlTextReaderSetResourceLoader(xmlTextReaderPtr reader, xmlResourceLoader loader, void *data) { if ((reader == ((void *)0)) || (reader->ctxt == ((void *)0))) return; reader->resourceLoader = loader; reader->resourceCtxt = data; xmlCtxtSetResourceLoader(reader-...
{ "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_leading_or_trailing_decimal_point_prep#json_write_minified.c
json.h
allow_leading_or_trailing_decimal_point.c
json_write_minified
26
void *json_write_minified(const struct json_value_s *value, size_t *out_size) { size_t size = 0; char *data = 0; char *data_end = 0; if (0 == value) { return 0; } if (json_write_minified_get_value_size(value, &size)) { return 0; } size += 1; data = (char *)malloc(size); if (0 == data) { ...
{ "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": 2, "return_statement": 5, "struct_type": 1, "switch_statement": 0, "type_casting": 1,...
transcoder-set#FIND_THE_MINIMUM_DISTANCE_BETWEEN_TWO_NUMBERS_prep#f_filled.c
transcoder-set
FIND_THE_MINIMUM_DISTANCE_BETWEEN_TWO_NUMBERS.c
f_filled
1
int f_filled ( int arr [ ], int n, int x, int 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": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
mtools-4.0.43#file_prep#isRootDir.c
mtools-4.0.43
file.c
isRootDir
5
int isRootDir(Stream_t *Stream) { File_t *This = getUnbufferedFile(Stream); return This->map == root_map; }
{ "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": 0,...
gprolog-1.5.0#write_c_prep#Pl_Write_Canonical_1.c
gprolog-1.5.0
write_c.c
Pl_Write_Canonical_1
8
void Pl_Write_Canonical_1(WamWord term_word) { (pl_sys_var[0]) = 2 | 1; (pl_sys_var[1]) = -1; (pl_sys_var[2]) = 1200; Pl_Write_Term_2(((PlLong) (0) + ((PlULong)0)), term_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": 0,...
libxml2#xmlunicode_prep#xmlUCSIsCatL.c
libxml2
xmlunicode.c
xmlUCSIsCatL
4
int xmlUCSIsCatL(int code) { return(xmlCharInRange((unsigned int)code, &xmlLG)); }
{ "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,...
nettle-3.9.1#yarrow256_prep#nettle_yarrow256_fast_reseed.c
nettle-3.9.1
yarrow256.c
nettle_yarrow256_fast_reseed
21
void nettle_yarrow256_fast_reseed(struct yarrow256_ctx *ctx) { uint8_t digest[32]; unsigned i; if (ctx->seeded) { uint8_t blocks[16 * 2]; yarrow_generate_block(ctx, blocks); yarrow_generate_block(ctx, blocks + 16); nettle_sha256_update(&ctx->pools[YARROW_FAST], sizeof(blocks), blocks);...
{ "array_type": 4, "break_continue_statement": 0, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 0, "memory_operation": 1, "pointer_type": 0, "return_statement": 0, "struct_type": 1, "switch_statement": 0, "type_casting": 0,...
nettle-3.9.1#ccm-aes192_prep#nettle_ccm_aes192_set_key.c
nettle-3.9.1
ccm-aes192.c
nettle_ccm_aes192_set_key
5
void nettle_ccm_aes192_set_key(struct ccm_aes192_ctx *ctx, const uint8_t *key) { nettle_aes192_set_encrypt_key(&ctx->cipher, key); }
{ "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,...
gawk-5.2.2#profile_prep#pp_number.c
gawk-5.2.2
profile.c
pp_number
9
char * pp_number(NODE *n) { char *str; ((void) (0)); (void) (str = (char *) emalloc_real((size_t)(n->sub.val.slen + 1), "pp_number", "str", "profile.c", 1753)); strcpy(str, n->sub.val.sp); return 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": 1, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 2,...
libxml2#parser_prep#xmlParserHandlePEReference.c
libxml2
parser.c
xmlParserHandlePEReference
4
void xmlParserHandlePEReference(xmlParserCtxtPtr ctxt) { xmlParsePEReference(ctxt); }
{ "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#init_prep#calc_clus_start.c
mtools-4.0.43
init.c
calc_clus_start
3
uint32_t calc_clus_start(Fs_t *Fs) { return Fs->fat_start + Fs->fat_len*Fs->num_fat + Fs->dir_len; }
{ "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_get_array_size.c
json.h
allow_inf_and_nan.c
json_get_array_size
49
int json_get_array_size(struct json_parse_state_s *state) { const size_t flags_bitset = state->flags_bitset; size_t elements = 0; int allow_comma = 0; const char *const src = state->src; const size_t size = state->size; if ('[' != src[state->offset]) { state->error = json_parse_error_unknown; return...
{ "array_type": 0, "break_continue_statement": 1, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 9, "memory_management": 0, "memory_operation": 0, "pointer_type": 0, "return_statement": 7, "struct_type": 1, "switch_statement": 0, "type_casting": 2,...
nettle-3.9.1#pgp-encode_prep#nettle_pgp_sub_packet_end.c
nettle-3.9.1
pgp-encode.c
nettle_pgp_sub_packet_end
9
void nettle_pgp_sub_packet_end(struct nettle_buffer *buffer, unsigned start) { unsigned length; ((void) sizeof ((start >= 2) ? 1 : 0), __extension__ ({ if (start >= 2) ; else __assert_fail ("start >= 2", "pgp-encode.c", 205, __extension__ __PRETTY_FUNCTION__); })); ((void) sizeof ((start <= buffer->size) ? 1 : 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": 1, "switch_statement": 0, "type_casting": 2,...
libxml2#hash_prep#xmlHashScan3.c
libxml2
hash.c
xmlHashScan3
9
void xmlHashScan3(xmlHashTablePtr hash, const xmlChar *key, const xmlChar *key2, const xmlChar *key3, xmlHashScanner scan, void *data) { stubData sdata; sdata.data = data; sdata.scan = scan; xmlHashScanFull3(hash, key, key2, key3, stubHashScannerFull, &sdata); }
{ "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#window_prep#winlink_remove.c
tmux
window.c
winlink_remove
12
void winlink_remove(struct winlinks *wwl, struct winlink *wl) { struct window *w = wl->window; if (w != ((void *)0)) { do { if (((wl)->wentry.tqe_next) != ((void *)0)) (wl)->wentry.tqe_next->wentry.tqe_prev = (wl)->wentry.tqe_prev; else (&w->winlinks)->tqh_last = (wl)->wentry.tqe_prev; *(wl)->wentry.tqe_prev = (wl)...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 2, "memory_operation": 0, "pointer_type": 1, "return_statement": 0, "struct_type": 2, "switch_statement": 0, "type_casting": 2,...
quadtree-0.1.0#point_prep#quadtree_point_free.c
quadtree-0.1.0
point.c
quadtree_point_free
4
void quadtree_point_free(quadtree_point_t *point){ free(point); }
{ "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": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
pth-2.0.7#pth_clean_prep#pth_cleanup_pop.c
pth-2.0.7
pth_clean.c
pth_cleanup_pop
14
int pth_cleanup_pop(int execute) { pth_cleanup_t *cleanup; int rc; rc = (0); if ((cleanup = __pth_current->cleanups) != ((void *)0)) { __pth_current->cleanups = cleanup->next; if (execute) cleanup->func(cleanup->arg); free(cleanup); rc = (!(0)); } retu...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 1, "memory_operation": 0, "pointer_type": 1, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
transcoder-set#CALCULATE_VOLUME_DODECAHEDRON_prep#min.c
transcoder-set
CALCULATE_VOLUME_DODECAHEDRON.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,...
gawk-5.2.2#debug_prep#do_up.c
gawk-5.2.2
debug.c
do_up
15
int do_up(CMDARG *arg, int cmd __attribute__ ((__unused__))) { do { if (! prog_running) { d_error(gettext("program not running")); return 0; } } while (0); if (arg != ((void *)0) && arg->type == D_int) cur_frame += arg->value.lval; else cur_frame++; if (cur_frame < 0) cur_frame = 0; else if (cur_frame > fcal...
{ "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": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 1,...
uucp-1.07#proti_prep#fishutdown.c
uucp-1.07
proti.c
fishutdown
43
boolean fishutdown (qdaemon) struct sdaemon *qdaemon; { char *z; size_t clen; fIclosing = (1); z = zigetspace (qdaemon, &clen) - (6); z[(0)] = ('\007'); z[(1)] = (((iIsendseq) << 3) | (0)); z[(2)] = (((iIrecseq) << 3) | (0)); iIlocal_ack = iIrecseq; z[(3)] = ((((5)) << 5) | ((qdaemon->fcaller) ? ...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 1, "goto_statement": 0, "if_statement": 3, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 2, "struct_type": 1, "switch_statement": 0, "type_casting": 0,...
tulipindicators-0.9.1#crossany_prep#ti_crossany_start.c
tulipindicators-0.9.1
crossany.c
ti_crossany_start
4
int ti_crossany_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,...
nettle-3.9.1#buffer-init_prep#nettle_buffer_init.c
nettle-3.9.1
buffer-init.c
nettle_buffer_init
5
void nettle_buffer_init(struct nettle_buffer *buffer) { nettle_buffer_init_realloc(buffer, ((void *)0), nettle_realloc); }
{ "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": 1,...
dap-3.10#ps_prep#pict_curve.c
dap-3.10
ps.c
pict_curve
16
void pict_curve(pict *p, double (*xf)(double t), double (*yf)(double t), double t0, double t1, int nsteps) { int step; double h; double t; h = (t1 - t0) / ((double) nsteps); for (step = 0; step <= nsteps; step++) { t = t0 + ((double) step) * h; if (xf) pict_point(p, (*xf)(t), (*yf)(t)); ...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 1, "function_pointer": 3, "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": 3,...
make-4.4.1#function_prep#shell_completed.c
make-4.4.1
function.c
shell_completed
14
void shell_completed (int exit_code, int exit_sig) { char buf[(53 * sizeof(uintmax_t) / 22 + 3)]; shell_function_pid = 0; if (exit_sig == 0 && exit_code == 127) shell_function_completed = -1; else shell_function_completed = 1; if (exit_code == 0 && exit_sig > 0) exit_code = 128 + exit_sig; sprin...
{ "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,...
rcs-5.10.1#b-divvy_prep#pointer_array.c
rcs-5.10.1
b-divvy.c
pointer_array
8
void * pointer_array (struct divvy *divvy, size_t count) { struct obstack *o = &divvy->space; while (count--) __extension__ ({ struct obstack *__o = (o); if (__extension__ ({ struct obstack const *__o1 = (__o); (size_t) (__o1->chunk_limit - __o1->next_free); }) < sizeof (void *)) _obstack_newchunk (__o, sizeof ...
{ "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": 4, "switch_statement": 0, "type_casting": 2,...
wget-1.21.4#hash_prep#hash_table_put.c
wget-1.21.4
hash.c
hash_table_put
19
void hash_table_put (struct hash_table *ht, const void *key, const void *value) { struct cell *c = find_cell (ht, key); if (((c)->key != ((void *) ~(uintptr_t) 0))) { c->key = (void *)key; c->value = (void *)value; return; } if (ht->count >= ht->resize_threshold) { grow_hash_ta...
{ "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": 2, "switch_statement": 0, "type_casting": 5,...
tulipindicators-0.9.1#crossany_prep#ti_crossany.c
tulipindicators-0.9.1
crossany.c
ti_crossany
12
int ti_crossany(int size, double const *const *inputs, double const *options, double *const *outputs) { const double *a = inputs[0]; const double *b = inputs[1]; (void)options; double *output = outputs[0]; int i; for (i = 1; i < size; ++i) { *output++ = (a[i] > b[i] && a[i-1] <= b[i-1]) ...
{ "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,...
tmux#server-client_prep#server_client_check_nested.c
tmux
server-client.c
server_client_check_nested
14
int server_client_check_nested(struct client *c) { struct environ_entry *envent; struct window_pane *wp; envent = environ_find(c->environ, "TMUX"); if (envent == ((void *)0) || *envent->value == '\0') return (0); for ((wp) = window_pane_tree_RB_MINMAX(&all_window_panes, -1); (wp) != ((void *)0); (wp) = window_pa...
{ "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": 3, "struct_type": 3, "switch_statement": 0, "type_casting": 2,...
transcoder-set#FINDING_POWER_PRIME_NUMBER_P_N_1_prep#main.c
transcoder-set
FINDING_POWER_PRIME_NUMBER_P_N_1.c
main
15
int main(void) { int n_success = 0; int param0[] = {76,77,9,59,8,97,78,41,72,71}; int param1[] = {43,91,42,67,52,8,24,88,61,28}; for(int i = 0; i < len(param0); ++i) { if(f_filled(param0[i],param1[i]) == f_gold(param0[i],param1[i])) { n_success+=1; } break; } ...
{ "array_type": 2, "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,...
transcoder-set#NUMBER_TRIANGLES_N_MOVES_1_prep#min.c
transcoder-set
NUMBER_TRIANGLES_N_MOVES_1.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#SUM_MATRIX_ELEMENT_ELEMENT_INTEGER_DIVISION_ROW_COLUMN_prep#main.c
transcoder-set
SUM_MATRIX_ELEMENT_ELEMENT_INTEGER_DIVISION_ROW_COLUMN.c
main
14
int main(void) { int n_success = 0; int param0[] = {60,74,8,74,34,66,96,11,45,72}; 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 0...
{ "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#xmlschemastypes_prep#xmlSchemaGetBuiltInListSimpleTypeItemType.c
libxml2
xmlschemastypes.c
xmlSchemaGetBuiltInListSimpleTypeItemType
16
xmlSchemaTypePtr xmlSchemaGetBuiltInListSimpleTypeItemType(xmlSchemaTypePtr type) { if ((type == ((void *)0)) || (type->type != XML_SCHEMA_TYPE_BASIC)) return (((void *)0)); switch (type->builtInType) { case XML_SCHEMAS_NMTOKENS: return (xmlSchemaTypeNmtokenDef ); case XML_SCHEMAS_IDREFS: return (x...
{ "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": 5, "struct_type": 0, "switch_statement": 1, "type_casting": 3,...
uucp-1.07#isfork_prep#ixsfork.c
uucp-1.07
isfork.c
ixsfork
14
pid_t ixsfork () { int i; pid_t iret; for (i = 0; i < 10; i++) { iret = fork (); if (iret >= 0 || (*__errno_location ()) != 11) return iret; sleep (5); } return iret; }
{ "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": 0,...
nano-7.2#history_prep#has_old_position.c
nano-7.2
history.c
has_old_position
17
_Bool has_old_position(const char *file, ssize_t *line, ssize_t *column) { char *fullpath = get_full_path(file); poshiststruct *item; if (fullpath == ((void *)0)) return 0; reload_positions_if_needed(); item = position_history; while (item != ((void *)0) && strcmp(item->filename, fullpath) != 0) item = item->...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 2, "memory_management": 1, "memory_operation": 0, "pointer_type": 2, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 3,...
transcoder-set#CHECK_ARRAY_REPRESENTS_INORDER_BINARY_SEARCH_TREE_NOT_prep#sort.c
transcoder-set
CHECK_ARRAY_REPRESENTS_INORDER_BINARY_SEARCH_TREE_NOT.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,...
diffutils-3.10#asnprintf_prep#asnprintf.c
diffutils-3.10
asnprintf.c
asnprintf
10
char * asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) { va_list args; char *result; __builtin_va_start(args,format); result = vasnprintf (resultbuf, lengthp, format, args); __builtin_va_end(args); 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": 1, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
libxml2#list_prep#xmlListFront.c
libxml2
list.c
xmlListFront
7
xmlLinkPtr xmlListFront(xmlListPtr l) { if (l == ((void *)0)) return(((void *)0)); return (l->sentinel->next); }
{ "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,...
indent-2.2.13#backup_prep#version_control_value.c
indent-2.2.13
backup.c
version_control_value
27
backup_mode_ty version_control_value(void) { char * version = getenv("VERSION_CONTROL"); version_control_values_ty * v; backup_mode_ty ret = unknown; if ((version == ((void *)0)) || (*version == 0)) { ret = numbered_existing; } else { v = &values[0]; while (v->nam...
{ "array_type": 1, "break_continue_statement": 1, "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": 2,...
libosip2-5.3.1#osip_body_prep#osip_body_parse.c
libosip2-5.3.1
osip_body.c
osip_body_parse
15
int osip_body_parse(osip_body_t *body, const char *start_of_body, size_t length) { if (body == ((void *)0)) return -2; if (start_of_body == ((void *)0)) return -2; if (body->headers == ((void *)0)) return -2; body->body = (char *) (osip_malloc_func ? osip_malloc_func(length + 1) : malloc(length + 1)...
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 4, "memory_management": 1, "memory_operation": 1, "pointer_type": 0, "return_statement": 5, "struct_type": 0, "switch_statement": 0, "type_casting": 5,...
transcoder-set#PRIME_NUMBERS_prep#min.c
transcoder-set
PRIME_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,...
make-4.4.1#remote-stub_prep#start_remote_job_p.c
make-4.4.1
remote-stub.c
start_remote_job_p
5
int start_remote_job_p (int first_p __attribute__ ((unused))) { 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": 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_array.c
json.h
allow_inf_and_nan.c
json_parse_array
57
void json_parse_array(struct json_parse_state_s *state, struct json_array_s *array) { const char *const src = state->src; const size_t size = state->size; size_t elements = 0; int allow_comma = 0; struct json_array_element_s *previous = 0; state->offset++; (void)json_skip_all_skippab...
{ "array_type": 0, "break_continue_statement": 2, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 7, "memory_management": 0, "memory_operation": 0, "pointer_type": 4, "return_statement": 0, "struct_type": 6, "switch_statement": 0, "type_casting": 8,...
wget-1.21.4#convert_prep#register_html.c
wget-1.21.4
convert.c
register_html
7
void register_html (const char *file) { if (!downloaded_html_set) downloaded_html_set = make_string_hash_table (0); string_set_add (downloaded_html_set, file); }
{ "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,...
patch-2.7.6#save-cwd_prep#free_cwd.c
patch-2.7.6
save-cwd.c
free_cwd
7
void free_cwd (struct saved_cwd *cwd) { if (cwd->desc >= 0) close (cwd->desc); free (cwd->name); }
{ "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": 0, "struct_type": 1, "switch_statement": 0, "type_casting": 0,...
json.h#allow_hexadecimal_numbers_prep#json_hexadecimal_value.c
json.h
allow_hexadecimal_numbers.c
json_hexadecimal_value
18
int json_hexadecimal_value(const char *c, const unsigned long size, unsigned long *result) { const char *p; int digit; if (size > sizeof(unsigned long) * 2) { return 0; } *result = 0; for (p = c; (unsigned long)(p - c) < size; ++p) { *result <<= 4; digit = json_hexadec...
{ "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": 1, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
transcoder-set#MAXIMUM_REMOVAL_FROM_ARRAY_WHEN_REMOVAL_TIME_WAITING_TIME_prep#min.c
transcoder-set
MAXIMUM_REMOVAL_FROM_ARRAY_WHEN_REMOVAL_TIME_WAITING_TIME.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#CHECK_GIVEN_CIRCLE_LIES_COMPLETELY_INSIDE_RING_FORMED_TWO_CONCENTRIC_CIRCLES_prep#max.c
transcoder-set
CHECK_GIVEN_CIRCLE_LIES_COMPLETELY_INSIDE_RING_FORMED_TWO_CONCENTRIC_CIRCLES.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-c#linkhash_prep#lh_table_length.c
json-c
linkhash.c
lh_table_length
4
int lh_table_length(struct lh_table *t) { return t->count; }
{ "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,...
cpio-2.14#rtapelib_prep#rmt_read__.c
cpio-2.14
rtapelib.c
rmt_read__
23
size_t rmt_read__ (int handle, char *buffer, size_t length) { char command_buffer[sizeof "R\n" + (((((sizeof (size_t) * 8) - (! ((__typeof__ (size_t)) 0 < (__typeof__ (size_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (size_t)) 0 < (__typeof__ (size_t)) -1)))]; size_t status; size_t rlen; size_t counter; s...
{ "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": 0, "return_statement": 3, "struct_type": 0, "switch_statement": 0, "type_casting": 5,...
libosip2-5.3.1#osip_via_prep#osip_via_clone.c
libosip2-5.3.1
osip_via.c
osip_via_clone
52
int osip_via_clone(const osip_via_t *via, osip_via_t **dest) { int i; osip_via_t *vi; *dest = ((void *)0); if (via == ((void *)0)) return -2; if (via->version == ((void *)0)) return -2; if (via->protocol == ((void *)0)) return -2; if (via->host == ((void *)0)) return -2; i = osip_via_ini...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 0, "function_pointer": 0, "goto_statement": 0, "if_statement": 13, "memory_management": 0, "memory_operation": 0, "pointer_type": 1, "return_statement": 12, "struct_type": 0, "switch_statement": 0, "type_casting": ...
dap-3.10#daprun_prep#dappprun.c
dap-3.10
daprun.c
dappprun
30
int dappprun(int argc, char **argv) { char **arg; int a; int status; pid_t pid; if (!(arg = (char **) malloc(sizeof(char *) * (argc + 1)))) { perror("dap"); exit(1); } arg[0] = dappp; for (a = 1; a < argc && strcmp(argv[a], "-a") && strcmp(argv[a], "--args"); a++) arg[a] = argv[a];...
{ "array_type": 2, "break_continue_statement": 0, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 3, "memory_management": 1, "memory_operation": 0, "pointer_type": 1, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 2,...
wget-1.21.4#spider_prep#print_broken_links.c
wget-1.21.4
spider.c
print_broken_links
23
void print_broken_links (void) { hash_table_iterator iter; int num_elems; if (!nonexisting_urls_set) { logprintf (LOG_NOTQUIET, gettext("Found no broken links.\n\n")); return; } num_elems = hash_table_count (nonexisting_urls_set); ((void) sizeof ((num_elems > 0) ? 1 : 0), __extension__ ({ ...
{ "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": 1, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 2,...
optipng-0.7.8#pngset_prep#png_set_user_limits.c
optipng-0.7.8
pngset.c
png_set_user_limits
9
void png_set_user_limits(png_structrp png_ptr, png_uint_32 user_width_max, png_uint_32 user_height_max) { if (png_ptr == ((void *)0)) return; png_ptr->user_width_max = user_width_max; png_ptr->user_height_max = user_height_max; }
{ "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,...
diffutils-3.10#util_prep#message.c
diffutils-3.10
util.c
message
42
void message (char const *format_msgid, ...) { va_list ap; __builtin_va_start(ap,format_msgid); if (paginate) { size_t argbytes = 0; for (char const *m = format_msgid; *m; m++) if (*m == '%') { if (m[1] == '%') m++; else argbytes += strlen (__builtin_va_arg(ap,char cons...
{ "array_type": 1, "break_continue_statement": 0, "enum_type": 0, "for_loop": 2, "function_pointer": 0, "goto_statement": 0, "if_statement": 6, "memory_management": 0, "memory_operation": 0, "pointer_type": 3, "return_statement": 0, "struct_type": 1, "switch_statement": 0, "type_casting": 1,...
uucp-1.07#protf_prep#ffsendcmd.c
uucp-1.07
protf.c
ffsendcmd
20
boolean ffsendcmd (qdaemon, z, ilocal, iremote) struct sdaemon *qdaemon; const char *z; int ilocal __attribute__ ((__unused__)); int iremote __attribute__ ((__unused__)); { size_t clen; char *zalc; boolean fret; do { if (((iDebug & ((010))) != 0)) ulog (LOG_DEBUG, ("ffsendcmd: Sending comman...
{ "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": 1, "pointer_type": 1, "return_statement": 1, "struct_type": 1, "switch_statement": 0, "type_casting": 0,...
transcoder-set#C_PROGRAM_FACTORIAL_NUMBER_1_prep#max.c
transcoder-set
C_PROGRAM_FACTORIAL_NUMBER_1.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#HOW_TO_PRINT_MAXIMUM_NUMBER_OF_A_USING_GIVEN_FOUR_KEYS_prep#sort.c
transcoder-set
HOW_TO_PRINT_MAXIMUM_NUMBER_OF_A_USING_GIVEN_FOUR_KEYS.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,...
libxml2#SAX2_prep#xmlSAX2StartElement.c
libxml2
SAX2.c
xmlSAX2StartElement
15
void xmlSAX2StartElement(void *ctx, const xmlChar *fullname, const xmlChar **atts) { xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx; (void) atts; if ((ctxt == ((void *)0)) || (fullname == ((void *)0)) || (ctxt->myDoc == ((void *)0))) return; if (!ctxt->html) { xmlSAX1StartElement(ctxt, f...
{ "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": 2,...
transcoder-set#FIRST_UPPERCASE_LETTER_IN_A_STRING_ITERATIVE_AND_RECURSIVE_prep#min.c
transcoder-set
FIRST_UPPERCASE_LETTER_IN_A_STRING_ITERATIVE_AND_RECURSIVE.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,...
gprolog-1.5.0#wam2ma_prep#F_call.c
gprolog-1.5.0
wam2ma.c
F_call
7
void F_call(ArgVal arg[]) { ArgVal *top = arg; char *m; char *p; PlLong n; ((m) = *((char * *) (top)) , (top)++); ((p) = *((char * *) (top)) , (top)++); ((n) = *((PlLong *) (top)) , (top)++); Encode_Hexa(m, p, n, buff_hexa); Inst_Printf("pl_call", buff_hexa); }
{ "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": 10, "return_statement": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0...
heman#generate_prep#heman_internal_generate_rock_noise.c
heman
generate.c
heman_internal_generate_rock_noise
26
heman_image* heman_internal_generate_rock_noise( int width, int height, int seed) { struct osn_context* ctx; open_simplex_noise(seed, &ctx); heman_image* img = heman_image_create(width, height, 1); float* data = img->data; float invh = 1.0f / (width > height ? width : height); float invw = 1...
{ "array_type": 2, "break_continue_statement": 0, "enum_type": 0, "for_loop": 2, "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#valid_prep#xmlFreeIDTable.c
libxml2
valid.c
xmlFreeIDTable
4
void xmlFreeIDTable(xmlIDTablePtr table) { xmlHashFree(table, xmlFreeIDTableEntry); }
{ "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,...
gprolog-1.5.0#ma2asm_prep#Label_Gen_Init.c
gprolog-1.5.0
ma2asm.c
Label_Gen_Init
7
void Label_Gen_Init(LabelGen *g, char *prefix) { g->prefix = prefix; g->no = 0; g->label[0] = '\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": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
optipng-0.7.8#pngerror_prep#png_warning_parameter.c
optipng-0.7.8
pngerror.c
png_warning_parameter
7
void png_warning_parameter(png_warning_parameters p, int number, png_const_charp string) { if (number > 0 && number <= 8) (void)png_safecat(p[number-1], (sizeof p[number-1]), 0, string); }
{ "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,...
diffutils-3.10#util_prep#print_message_queue.c
diffutils-3.10
util.c
print_message_queue
19
void print_message_queue (void) { for (struct msg *m = msg_chain; m; ) { char const *p = m->args; char const *plim = p + m->argbytes; char const *arg0 = p; p += p < plim ? strlen (p) + 1 : 0; char const *arg1 = p; p += p < plim ? strlen (p) + 1 : 0; char const *arg2 = p; p += p < pli...
{ "array_type": 0, "break_continue_statement": 0, "enum_type": 0, "for_loop": 1, "function_pointer": 0, "goto_statement": 0, "if_statement": 1, "memory_management": 1, "memory_operation": 0, "pointer_type": 8, "return_statement": 0, "struct_type": 2, "switch_statement": 0, "type_casting": 1,...
transcoder-set#DICE_THROW_PROBLEM_1_prep#cmpfunc.c
transcoder-set
DICE_THROW_PROBLEM_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,...
mtools-4.0.43#fat_prep#getClusterBytes.c
mtools-4.0.43
fat.c
getClusterBytes
3
uint32_t getClusterBytes(Fs_t *Fs) { return Fs->cluster_size * Fs->sector_size; }
{ "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#SEQUENCES_GIVEN_LENGTH_EVERY_ELEMENT_EQUAL_TWICE_PREVIOUS_prep#max.c
transcoder-set
SEQUENCES_GIVEN_LENGTH_EVERY_ELEMENT_EQUAL_TWICE_PREVIOUS.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,...
gawk-5.2.2#regex_prep#re_set_syntax.c
gawk-5.2.2
regex.c
re_set_syntax
7
reg_syntax_t re_set_syntax (reg_syntax_t syntax) { reg_syntax_t ret = re_syntax_options; re_syntax_options = syntax; 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": 0, "return_statement": 1, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
nano-7.2#text_prep#replace_buffer.c
nano-7.2
text.c
replace_buffer
23
_Bool replace_buffer(const char *filename, undo_type action, const char *operation) { linestruct *was_cutbuffer = cutbuffer; int descriptor; FILE *stream; descriptor = open_file(filename, 0, &stream); if (descriptor < 0) return 0; add_undo(COUPLE_BEGIN, operation); if (action == CUT_TO_EOF) { openfile->curre...
{ "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": 2, "struct_type": 0, "switch_statement": 0, "type_casting": 3,...
tinycc#tccelf_prep#section_reserve.c
tinycc
tccelf.c
section_reserve
7
void section_reserve(Section *sec, unsigned long size) { if (size > sec->data_allocated) section_realloc(sec, size); if (size > sec->data_offset) sec->data_offset = size; }
{ "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,...
less-633#ifile_prep#get_pos.c
less-633
ifile.c
get_pos
4
void get_pos(void* ifile, struct scrpos *scrpos) { *scrpos = ((struct ifile *)(ifile))->h_scrpos; }
{ "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": 1,...
transcoder-set#SUM_SERIES_ALTERNATE_SIGNED_SQUARES_AP_prep#sort.c
transcoder-set
SUM_SERIES_ALTERNATE_SIGNED_SQUARES_AP.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,...
libosip2-5.3.1#osip_call_id_prep#osip_call_id_set_number.c
libosip2-5.3.1
osip_call_id.c
osip_call_id_set_number
3
void osip_call_id_set_number(osip_call_id_t *callid, char *number) { callid->number = 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": 0, "struct_type": 0, "switch_statement": 0, "type_casting": 0,...
transcoder-set#FIND_MINIMUM_NUMBER_DIVIDED_MAKE_NUMBER_PERFECT_SQUARE_prep#f_filled.c
transcoder-set
FIND_MINIMUM_NUMBER_DIVIDED_MAKE_NUMBER_PERFECT_SQUARE.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,...
transcoder-set#FIND_THREE_ELEMENT_FROM_DIFFERENT_THREE_ARRAYS_SUCH_THAT_THAT_A_B_C_K_prep#f_filled.c
transcoder-set
FIND_THREE_ELEMENT_FROM_DIFFERENT_THREE_ARRAYS_SUCH_THAT_THAT_A_B_C_K.c
f_filled
1
_Bool f_filled ( int a1 [ ], int a2 [ ], int a3 [ ], int n1, int n2, int n3, int sum ) {}
{ "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,...
transcoder-set#FRIENDS_PAIRING_PROBLEM_prep#max.c
transcoder-set
FRIENDS_PAIRING_PROBLEM.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,...
optipng-0.7.8#deflate_prep#deflateBound.c
optipng-0.7.8
deflate.c
deflateBound
26
uLong deflateBound(z_streamp strm, uLong sourceLen) { deflate_state *s; uLong fixedlen, storelen, wraplen; fixedlen = sourceLen + (sourceLen >> 3) + (sourceLen >> 8) + (sourceLen >> 9) + 4; storelen = sourceLen + (sourceLen >> 5) + (sourceLen >> 7) + (sourceLen >> 11) + 7; ...
{ "array_type": 0, "break_continue_statement": 2, "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": 1, "type_casting": 0,...
libxml2#xmlunicode_prep#xmlUCSIsOriya.c
libxml2
xmlunicode.c
xmlUCSIsOriya
4
int xmlUCSIsOriya(int code) { return(((code >= 0x0B00) && (code <= 0x0B7F))); }
{ "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,...