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 |
|---|---|---|---|---|---|---|
gprolog-1.5.0#wam2ma_prep#F_call_c.c | gprolog-1.5.0 | wam2ma.c | F_call_c | 139 | void
F_call_c(ArgVal arg[])
{
int ret = 0;
Bool fast_call = 0;
Bool tagged = 0;
Bool set_cp = 0;
char *str;
Bool adr_of;
PlLong ret_xy = 0;
char ret_c = 0;
int i;
char *c_option;
PlLong arg_type;
BTNode *atom; char *str_atom;
char *aux_functor;
PlLong aux_arity;
PlLong n;
double n1;
Pl... | {
"array_type": 1,
"break_continue_statement": 6,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 2,
"if_statement": 20,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 7,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 1,
"type_casting": 3... |
tar-1.34#dirname-lgpl_prep#dir_len.c | tar-1.34 | dirname-lgpl.c | dir_len | 19 | size_t
dir_len (char const *file)
{
size_t prefix_length = ((void) (file), 0);
size_t length;
prefix_length += (prefix_length != 0
? (0
&& ((file[prefix_length]) == '/'))
: (((file[0]) == '/')
? ((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,... |
pexec-1.0rc8#str_prep#strkcpy.c | pexec-1.0rc8 | str.c | strkcpy | 6 | char * strkcpy(char *out,char *in,int size)
{
strncpy(out,in,size);
out[size-1]=0;
return(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": 0,... |
ed-1.19#regex_prep#set_subst_regex.c | ed-1.19 | regex.c | set_subst_regex | 14 | bool set_subst_regex( const char * const pat, const bool ignore_case )
{
if( !pat ) return false;
if( !*pat && ignore_case ) { set_error_msg( inv_i_suf ); return false; }
disable_interrupts();
regex_t * exp = *pat ? compile_regex( pat, ignore_case ) : last_regexp;
if( exp && exp != subst_regexp )
{
... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 4,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#CONVERTING_ONE_STRING_USING_APPEND_DELETE_LAST_OPERATIONS_prep#len.c | transcoder-set | CONVERTING_ONE_STRING_USING_APPEND_DELETE_LAST_OPERATIONS.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,... |
json.h#allow_single_quoted_strings_prep#json_value_as_object.c | json.h | allow_single_quoted_strings.c | json_value_as_object | 6 | struct json_object_s *json_value_as_object(struct json_value_s *const value) {
if (value->type != json_type_object) {
return 0;
}
return (struct json_object_s *)value->payload;
}
| {
"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": 1,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#uri_prep#xmlNormalizeURIPath.c | libxml2 | uri.c | xmlNormalizeURIPath | 4 | int
xmlNormalizeURIPath(char *path) {
return(xmlNormalizePath(path, 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,... |
transcoder-set#FIND_MINIMUM_DIFFERENCE_PAIR_prep#f_filled.c | transcoder-set | FIND_MINIMUM_DIFFERENCE_PAIR.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,... |
mtools-4.0.43#fat_prep#getStart.c | mtools-4.0.43 | fat.c | getStart | 10 | uint32_t getStart(Stream_t *Dir, struct directory *dir)
{
Stream_t *Stream = GetFs(Dir);
uint32_t first;
first = (((uint16_t)((unsigned char)((dir)->start)[0] + (((unsigned char)((dir)->start)[1]) << 8))));
if(fat32RootCluster(Stream)) {
first |= (uint32_t) (((uint16_t)((unsigned char)((dir)->startHi)[0] + (((uns... | {
"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": 0,... |
libxml2#threads_prep#xmlInitParser.c | libxml2 | threads.c | xmlInitParser | 4 | void
xmlInitParser(void) {
pthread_once(&onceControl, xmlInitParserInternal);
}
| {
"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#chvalid_prep#xmlIsExtender.c | libxml2 | chvalid.c | xmlIsExtender | 4 | int
xmlIsExtender(unsigned int ch) {
return((((ch) < 0x100) ? ((((ch)) == 0xb7)) : xmlCharInRange((ch), &xmlIsExtenderGroup)));
}
| {
"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#builtin_prep#check_exact_args.c | gawk-5.2.2 | builtin.c | check_exact_args | 6 | void
check_exact_args(int nargs, const char *fname, int count)
{
if (nargs != count)
(*(set_loc("builtin.c", 98), r_fatal))(gettext("%s: called with %d arguments"), fname, nargs);
}
| {
"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#arctwo_prep#nettle_arctwo40_set_key.c | nettle-3.9.1 | arctwo.c | nettle_arctwo40_set_key | 5 | void
nettle_arctwo40_set_key (struct arctwo_ctx *ctx, const uint8_t *key)
{
nettle_arctwo_set_key_ekb (ctx, 5, key, 40);
}
| {
"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,... |
libosip2-5.3.1#port_sema_prep#osip_sem_wait.c | libosip2-5.3.1 | port_sema.c | osip_sem_wait | 6 | int osip_sem_wait(struct osip_sem *_sem) {
osip_sem_t *sem = (osip_sem_t *) _sem;
if (sem == ((void *)0))
return -2;
return sem_wait(sem);
}
| {
"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": 1,
"switch_statement": 0,
"type_casting": 1,... |
gprolog-1.5.0#format_c_prep#Pl_Format_2.c | gprolog-1.5.0 | format_c.c | Pl_Format_2 | 5 | void
Pl_Format_2(WamWord format_word, WamWord args_word)
{
Pl_Format_3(((PlLong) (0) + ((PlULong)0)), format_word, args_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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
json-c#linkhash_prep#lh_kchar_table_new.c | json-c | linkhash.c | lh_kchar_table_new | 4 | struct lh_table *lh_kchar_table_new(int size, lh_entry_free_fn *free_fn)
{
return lh_table_new(size, free_fn, char_hash_fn, lh_char_equal);
}
| {
"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,... |
transcoder-set#SUM_SERIES_12_32_52_2N_12_prep#min.c | transcoder-set | SUM_SERIES_12_32_52_2N_12.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#misc_prep#concat.c | make-4.4.1 | misc.c | concat | 31 | const char *
concat (unsigned int num, ...)
{
static size_t rlen = 0;
static char *result = ((void *)0);
size_t ri = 0;
va_list args;
__builtin_va_start(args,num);
while (num-- > 0)
{
const char *s = __builtin_va_arg(args,const char *);
size_t l = ((s)==((void *)0) ? 0 : strlen (s));
i... | {
"array_type": 1,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 3,
"memory_management": 0,
"memory_operation": 1,
"pointer_type": 2,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
grep-3.11#printf-args_prep#printf_fetchargs.c | grep-3.11 | printf-args.c | printf_fetchargs | 167 | int
printf_fetchargs (va_list args, arguments *a)
{
size_t i;
argument *ap;
for (i = 0, ap = &a->arg[0]; i < a->count; i++, ap++)
switch (ap->type)
{
case TYPE_SCHAR:
ap->a.a_schar = __builtin_va_arg(args,int);
break;
case TYPE_UCHAR:
ap->a.a_uchar = __builtin_va_arg(... | {
"array_type": 1,
"break_continue_statement": 46,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 1,
"type_casting": 3... |
units-2.22#units_prep#showunitlistdef.c | units-2.22 | units.c | showunitlistdef | 8 | void
showunitlistdef(struct wantalias *alias)
{
logprintf("%sunit list, ",deftext);
tightprint(stdout,alias->definition);
if (logfile) tightprint(logfile,alias->definition);
logputchar('\n');
}
| {
"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,... |
transcoder-set#FIND_N_TH_ELEMENT_FROM_STERNS_DIATOMIC_SERIES_prep#main.c | transcoder-set | FIND_N_TH_ELEMENT_FROM_STERNS_DIATOMIC_SERIES.c | main | 14 | int main(void) {
int n_success = 0;
int param0[] = {37,24,13,56,26,67,82,60,64,65};
for(int i = 0; i < len(param0); ++i)
{
if(f_filled(param0[i]) == f_gold(param0[i]))
{
n_success+=1;
}
break;
}
printf("#Results:", " ", n_success, ", ", len(param0));
return ... | {
"array_type": 1,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
json.h#test_prep#json_hexadecimal_value.c | json.h | test.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,... |
gprolog-1.5.0#wam_inst_prep#Pl_Defeasible_Undo.c | gprolog-1.5.0 | wam_inst.c | Pl_Defeasible_Undo | 5 | void
Pl_Defeasible_Undo()
{
Pl_Update_Choice_Point0(((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,... |
tinycc#tccelf_prep#tccelf_bounds_new.c | tinycc | tccelf.c | tccelf_bounds_new | 7 | void tccelf_bounds_new(TCCState *s)
{
bounds_section = new_section(s, ".bounds",
1, (1 << 1));
lbounds_section = new_section(s, ".lbounds",
1, (1 << 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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
cflow-1.7#xmalloc_prep#xzalloc.c | cflow-1.7 | xmalloc.c | xzalloc | 5 | void *
xzalloc (size_t n)
{
return xcalloc (n, 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#DECIMAL_REPRESENTATION_GIVEN_BINARY_STRING_DIVISIBLE_10_NOT_prep#main.c | transcoder-set | DECIMAL_REPRESENTATION_GIVEN_BINARY_STRING_DIVISIBLE_10_NOT.c | main | 14 | int main(void) {
int n_success = 0;
char param0[][100] = {"101000","39613456759141","11","PoiHjo","2","0000101","T s dZKeDX gK","3944713969","1000","ifYUgdpmt"};
for(int i = 0; i < len(param0); ++i)
{
if(f_filled(param0[i]) == f_gold(param0[i]))
{
n_success+=1;
}
br... | {
"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#xmlIO_prep#xmlPopOutputCallbacks.c | libxml2 | xmlIO.c | xmlPopOutputCallbacks | 9 | int
xmlPopOutputCallbacks(void)
{
xmlInitParser();
if (xmlOutputCallbackNr <= 0)
return(-1);
xmlOutputCallbackNr--;
return(xmlOutputCallbackNr);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tulipindicators-0.9.1#tiamalgamation_prep#ti_vhf_start.c | tulipindicators-0.9.1 | tiamalgamation.c | ti_vhf_start | 3 | int ti_vhf_start(double const *options) {
return (int)options[0];
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#libxml2-py_prep#libxml_xmlParseMarkupDecl.c | libxml2 | libxml2-py.c | libxml_xmlParseMarkupDecl | 13 | PyObject *
libxml_xmlParseMarkupDecl(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
xmlParserCtxtPtr ctxt;
PyObject *pyobj_ctxt;
if (libxml_deprecationWarning("xmlParseMarkupDecl") == -1)
return(((void *)0));
if (!_PyArg_ParseTuple_SizeT(args, (char *)"O:xmlParseMarkupDecl", &pyo... | {
"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,... |
tmux#control-notify_prep#control_notify_session_window_changed.c | tmux | control-notify.c | control_notify_session_window_changed | 11 | void
control_notify_session_window_changed(struct session *s)
{
struct client *c;
for((c) = ((&clients)->tqh_first); (c) != ((void *)0); (c) = ((c)->entry.tqe_next)) {
if (!((c) != ((void *)0) && ((c)->flags & 0x2000)))
continue;
control_write(c, "%%session-window-changed $%u @%u", s->id,
s->curw->window... | {
"array_type": 0,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 0,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 2,... |
bc-1.07.1#scan_prep#yylex.c | bc-1.07.1 | scan.c | yylex | 352 | int yylex (void)
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
if ( !(yy_init) )
{
(yy_init) = 1;
if ( ! (yy_start) )
(yy_start) = 1;
if ( ! yyin )
yyin = stdin;
if ( ! yyout )
yyout = stdout;
if ( ! ( (yy_buffer_stack) ? (yy_buffer_stack)[(yy_buf... | {
"array_type": 4,
"break_continue_statement": 50,
"enum_type": 0,
"for_loop": 2,
"function_pointer": 0,
"goto_statement": 6,
"if_statement": 28,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 5,
"return_statement": 40,
"struct_type": 0,
"switch_statement": 2,
"type_casting":... |
hello-2.12.1#basename_prep#base_name.c | hello-2.12.1 | basename.c | base_name | 21 | char *
base_name (char const *name)
{
char const *base = last_component (name);
size_t length;
if (! *base)
return xstrndup (name, base_len (name));
length = base_len (base);
if (((base[length]) == '/'))
length++;
if (((void) (base), 0))
{
char *p = xmalloc (length + 3);
p[0] = '.';
... | {
"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": 1,
"pointer_type": 2,
"return_statement": 3,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#parser_prep#xmlParseCharData.c | libxml2 | parser.c | xmlParseCharData | 4 | void
xmlParseCharData(xmlParserCtxtPtr ctxt, __attribute__((unused)) int cdata) {
xmlParseCharDataInternal(ctxt, 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,... |
libxml2#libxml2-py_prep#libxml_xmlCatalogConvert.c | libxml2 | libxml2-py.c | libxml_xmlCatalogConvert | 8 | PyObject *
libxml_xmlCatalogConvert(PyObject *self __attribute__ ((__unused__)), PyObject *args __attribute__ ((__unused__))) {
PyObject *py_retval;
int c_retval;
c_retval = xmlCatalogConvert();
py_retval = libxml_intWrap((int) c_retval);
return(py_retval);
}
| {
"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,... |
make-4.4.1#hash_prep#hash_delete_at.c | make-4.4.1 | hash.c | hash_delete_at | 13 | void *
hash_delete_at (struct hash_table *ht, const void *slot)
{
void *item = *(void **) slot;
if (!((item) == 0 || (void *) (item) == hash_deleted_item))
{
*(void const **) slot = hash_deleted_item;
ht->ht_fill--;
return item;
}
else
return 0;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 2,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#CALCULATE_VOLUME_DODECAHEDRON_prep#cmpfunc.c | transcoder-set | CALCULATE_VOLUME_DODECAHEDRON.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,... |
transcoder-set#DISTRIBUTING_ITEMS_PERSON_CANNOT_TAKE_TWO_ITEMS_TYPE_prep#f_gold.c | transcoder-set | DISTRIBUTING_ITEMS_PERSON_CANNOT_TAKE_TWO_ITEMS_TYPE.c | f_gold | 15 | _Bool f_gold ( int arr [ ], int n, int k ) {
int count;
for ( int i = 0;
i < n;
i ++ ) {
count = 0;
for ( int j = 0;
j < n;
j ++ ) {
if ( arr [ j ] == arr [ i ] ) count ++;
if ( count > 2 * k ) return 0;
}
}
return 1;
}
| {
"array_type": 1,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 2,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 2,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
pexec-1.0rc8#numhash_prep#numhash_free.c | pexec-1.0rc8 | numhash.c | numhash_free | 6 | int numhash_free(numhashtable *nt)
{
numhash_local_free(&nt->table,0,nt->depth,nt->bitsize);
numhash_init(nt,nt->bitsize,nt->depth);
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,... |
nano-7.2#global_prep#shown_entries_for.c | nano-7.2 | global.c | shown_entries_for | 15 | size_t shown_entries_for(int menu)
{
funcstruct *item = allfuncs;
size_t maximum = ((COLS + 40) / 20) * 2;
size_t count = 0;
while (count < maximum && item != ((void *)0)) {
if (item->menus & menu)
count++;
item = item->next;
}
if (menu == (1<<5) && item == ((void *)0) &&
first_sc_for(menu, discard_b... | {
"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": 3,... |
transcoder-set#EQUILIBRIUM_INDEX_OF_AN_ARRAY_1_prep#min.c | transcoder-set | EQUILIBRIUM_INDEX_OF_AN_ARRAY_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,... |
libxml2#libxml2-py_prep#libxml_xmlSaveFile.c | libxml2 | libxml2-py.c | libxml_xmlSaveFile | 14 | PyObject *
libxml_xmlSaveFile(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
PyObject *py_retval;
int c_retval;
char * filename;
xmlDocPtr cur;
PyObject *pyobj_cur;
if (!_PyArg_ParseTuple_SizeT(args, (char *)"zO:xmlSaveFile", &filename, &pyobj_cur))
return(((void *)0));
... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
uucp-1.07#cusub_prep#fsysdep_terminal_puts.c | uucp-1.07 | cusub.c | fsysdep_terminal_puts | 41 | boolean
fsysdep_terminal_puts (zline)
const char *zline;
{
char *zalc, *zprint;
size_t clen;
if (zline == ((void *)0))
{
zalc = zbufalc (2);
clen = 0;
}
else
{
clen = strlen (zline);
zalc = zbufalc (clen + 2);
memcpy (zalc, zline, clen);
}
if (fSterm)
{
... | {
"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": 1,
"pointer_type": 2,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
libxml2#xpath_prep#xmlXPathCastToNumber.c | libxml2 | xpath.c | xmlXPathCastToNumber | 4 | double
xmlXPathCastToNumber(xmlXPathObjectPtr val) {
return(xmlXPathCastToNumberInternal(((void *)0), val));
}
| {
"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,... |
gprolog-1.5.0#error_supp_prep#Pl_Os_Error.c | gprolog-1.5.0 | error_supp.c | Pl_Os_Error | 12 | void
Pl_Os_Error(int ret_val)
{
char *err_str = Pl_M_Sys_Err_String(ret_val);
if (((pl_flag_os_error)->value) == 0)
Pl_Err_System(Pl_Create_Allocate_Atom(err_str));
Update_Cur_From_C_Bip();
if (((pl_flag_os_error)->value) == 1)
Pl_Stream_Printf(pl_stm_tbl[pl_stm_top_level_output],
"warning: OS er... | {
"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": 1,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
screen-4.9.0#layer_prep#LayerCleanupMemory.c | screen-4.9.0 | layer.c | LayerCleanupMemory | 7 | void LayerCleanupMemory(struct layer *layer)
{
if (layer->l_pause.left)
free(layer->l_pause.left);
if (layer->l_pause.right)
free(layer->l_pause.right);
}
| {
"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": 0,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#SEARCH_INSERT_AND_DELETE_IN_A_SORTED_ARRAY_1_prep#len.c | transcoder-set | SEARCH_INSERT_AND_DELETE_IN_A_SORTED_ARRAY_1.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,... |
tulipindicators-0.9.1#tiamalgamation_prep#tc_result_new.c | tulipindicators-0.9.1 | tiamalgamation.c | tc_result_new | 6 | tc_result *tc_result_new() {
tc_result *k = malloc(sizeof(tc_result));
if (!k) return 0;
memset(k, 0, sizeof(tc_result));
return k;
}
| {
"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": 1,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#LONGEST_COMMON_INCREASING_SUBSEQUENCE_LCS_LIS_prep#max.c | transcoder-set | LONGEST_COMMON_INCREASING_SUBSEQUENCE_LCS_LIS.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,... |
patch-2.7.6#quotearg_prep#quotearg_custom.c | patch-2.7.6 | quotearg.c | quotearg_custom | 6 | char *
quotearg_custom (char const *left_quote, char const *right_quote,
char const *arg)
{
return quotearg_n_custom (0, left_quote, right_quote, arg);
}
| {
"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#SEARCH_AN_ELEMENT_IN_AN_ARRAY_WHERE_DIFFERENCE_BETWEEN_ADJACENT_ELEMENTS_IS_1_prep#min.c | transcoder-set | SEARCH_AN_ELEMENT_IN_AN_ARRAY_WHERE_DIFFERENCE_BETWEEN_ADJACENT_ELEMENTS_IS_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,... |
libosip2-5.3.1#osip_transaction_prep#osip_transaction_set_your_instance.c | libosip2-5.3.1 | osip_transaction.c | osip_transaction_set_your_instance | 6 | int osip_transaction_set_your_instance(osip_transaction_t *transaction, void *ptr) {
if (transaction == ((void *)0))
return -2;
transaction->reserved1 = ptr;
return 0;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
hello-2.12.1#quotearg_prep#set_char_quoting.c | hello-2.12.1 | quotearg.c | set_char_quoting | 11 | int
set_char_quoting (struct quoting_options *o, char c, int i)
{
unsigned char uc = c;
unsigned int *p =
(o ? o : &default_quoting_options)->quote_these_too + uc / (sizeof (int) * 8);
int shift = uc % (sizeof (int) * 8);
int r = (*p >> shift) & 1;
*p ^= ((i & 1) ^ r) << shift;
return r;
}
| {
"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": 1,
"switch_statement": 0,
"type_casting": 2,... |
transcoder-set#TOTAL_NUMBER_OF_NON_DECREASING_NUMBERS_WITH_N_DIGITS_1_prep#max.c | transcoder-set | TOTAL_NUMBER_OF_NON_DECREASING_NUMBERS_WITH_N_DIGITS_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,... |
findutils-4.9.0#sharefile_prep#sharefile_destroy.c | findutils-4.9.0 | sharefile.c | sharefile_destroy | 7 | void
sharefile_destroy (sharefile_handle pv)
{
struct sharefile *p = pv;
free (p->mode);
hash_free (p->table);
}
| {
"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": 1,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#debugXML_prep#xmlDebugDumpAttr.c | libxml2 | debugXML.c | xmlDebugDumpAttr | 10 | void
xmlDebugDumpAttr(FILE *output, xmlAttrPtr attr, int depth) {
xmlDebugCtxt ctxt;
if (output == ((void *)0)) return;
xmlCtxtDumpInitCtxt(&ctxt);
ctxt.output = output;
ctxt.depth = depth;
xmlCtxtDumpAttr(&ctxt, attr);
xmlCtxtDumpCleanCtxt(&ctxt);
}
| {
"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,... |
transcoder-set#COUNT_STRINGS_CAN_FORMED_USING_B_C_GIVEN_CONSTRAINTS_1_prep#cmpfunc.c | transcoder-set | COUNT_STRINGS_CAN_FORMED_USING_B_C_GIVEN_CONSTRAINTS_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,... |
tmux#format_prep#format_entry_tree_RB_NFIND.c | tmux | format.c | format_entry_tree_RB_NFIND | 1 | struct format_entry * format_entry_tree_RB_NFIND(struct format_entry_tree *head, struct format_entry *elm) { struct format_entry *tmp = (head)->rbh_root; struct format_entry *res = ((void *)0); int comp; while (tmp) { comp = format_entry_cmp(elm, tmp); if (comp < 0) { res = tmp; tmp = (tmp)->entry.rbe_left; } else if (... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
patch-2.7.6#cloexec_prep#dup_cloexec.c | patch-2.7.6 | cloexec.c | dup_cloexec | 5 | int
dup_cloexec (int fd)
{
return rpl_fcntl (fd, 1030, 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,... |
tmux#screen_prep#screen_resize.c | tmux | screen.c | screen_resize | 17 | void
screen_resize(struct screen *s, u_int sx, u_int sy, int reflow)
{
if (sx < 1)
sx = 1;
if (sy < 1)
sy = 1;
if (sx != ((s)->grid->sx)) {
screen_resize_x(s, sx);
screen_reset_tabs(s);
} else
reflow = 0;
if (sy != ((s)->grid->sy))
screen_resize_y(s, sy);
if (reflow)
screen_reflow(s, sx);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
nettle-3.9.1#bignum_prep#nettle_mpz_init_set_str_256_s.c | nettle-3.9.1 | bignum.c | nettle_mpz_init_set_str_256_s | 7 | void
nettle_mpz_init_set_str_256_s(mpz_t x,
size_t length, const uint8_t *s)
{
__gmpz_init(x);
nettle_mpz_set_str_256_s(x, length, 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,... |
heman#plane_prep#kmPlaneFill.c | heman | plane.c | kmPlaneFill | 7 | kmPlane* kmPlaneFill(kmPlane* plane, float a, float b, float c, float d) {
plane->a = a;
plane->b = b;
plane->c = c;
plane->d = d;
return plane;
}
| {
"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#parser_prep#nodePop.c | libxml2 | parser.c | nodePop | 16 | xmlNodePtr
nodePop(xmlParserCtxtPtr ctxt)
{
xmlNodePtr ret;
if (ctxt == ((void *)0)) return(((void *)0));
if (ctxt->nodeNr <= 0)
return (((void *)0));
ctxt->nodeNr--;
if (ctxt->nodeNr > 0)
ctxt->node = ctxt->nodeTab[ctxt->nodeNr - 1];
else
ctxt->node = ((void *)0);
re... | {
"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": 4,... |
lodepng#lodepng_prep#lodepng_add_itext.c | lodepng | lodepng.c | lodepng_add_itext | 4 | unsigned lodepng_add_itext(LodePNGInfo* info, const char* key, const char* langtag,
const char* transkey, const char* str) {
return lodepng_add_itext_sized(info, key, langtag, transkey, str, lodepng_strlen(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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#PYTHAGOREAN_QUADRUPLE_prep#f_gold.c | transcoder-set | PYTHAGOREAN_QUADRUPLE.c | f_gold | 5 | _Bool f_gold ( int a, int b, int c, int d ) {
int sum = a * a + b * b + c * c;
if ( d * d == sum ) return 1;
else return 0;
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
less-633#pattern_prep#match_pattern.c | less-633 | pattern.c | match_pattern | 11 | int match_pattern(regex_t * pattern, char *tpattern, char *line, int line_len, char **sp, char **ep, int nsp, int notbol, int search_type)
{
int matched = match_pattern1(pattern, tpattern, line, line_len, sp, ep, nsp, notbol, search_type);
int i;
for (i = 1; i <= (16 -10-1); i++)
{
if ((search_type & (1 << (16+(i... | {
"array_type": 2,
"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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
wget-1.21.4#connect_prep#socket_family.c | wget-1.21.4 | connect.c | socket_family | 18 | int
socket_family (int sock, int endpoint)
{
struct sockaddr_storage storage;
struct sockaddr *sockaddr = (struct sockaddr *) &storage;
socklen_t addrlen = sizeof (storage);
int ret;
memset (sockaddr, 0, addrlen);
if (endpoint == ENDPOINT_LOCAL)
ret = getsockname (sock, sockaddr, &addrlen);
else if (e... | {
"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": 1,
"return_statement": 2,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 1,... |
less-633#optfunc_prep#opt__P.c | less-633 | optfunc.c | opt__P | 27 | void opt__P(int type, char *s)
{
char **proto;
PARG parg;
switch (type)
{
case 0:
case 2:
switch (*s)
{
case 's': proto = &prproto[0]; s++; break;
case 'm': proto = &prproto[1]; s++; break;
case 'M': proto = &prproto[2]; s++; break;
case '=': proto = &eqproto; s++; break;
case 'h': proto = &hproto; ... | {
"array_type": 1,
"break_continue_statement": 9,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 1,
"memory_operation": 0,
"pointer_type": 1,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 2,
"type_casting": 0,... |
transcoder-set#SPLIT_N_MAXIMUM_COMPOSITE_NUMBERS_prep#f_filled.c | transcoder-set | SPLIT_N_MAXIMUM_COMPOSITE_NUMBERS.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,... |
gprolog-1.5.0#c_supp_prep#Pl_Rd_Boolean.c | gprolog-1.5.0 | c_supp.c | Pl_Rd_Boolean | 9 | int
Pl_Rd_Boolean(WamWord start_word)
{
WamWord word, tag_mask;
int atom;
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 (... | {
"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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
mcsim-6.2.0#mh_prep#PrintExpt.c | mcsim-6.2.0 | mh.c | PrintExpt | 51 | int PrintExpt (PLEVEL plevel, char **args)
{
PANALYSIS panal = (PANALYSIS)args[0];
PFILE pOutFile = (PFILE)args[1];
long k, l, m, n;
PEXPERIMENT pExpt = plevel->pexpt;
POUTSPEC pos;
static long printed_head = 0;
if (!printed_head) {
fprintf (pOutFile,
"Level\tSimulation\tOutput_Var\tTime\... | {
"array_type": 9,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 5,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
mtools-4.0.43#strtonum_prep#strtoui.c | mtools-4.0.43 | strtonum.c | strtoui | 3 | unsigned int strtoui(const char *nptr, char **endptr, int base) {
return (unsigned int) strtoul_with_range(nptr, endptr, base, (0x7fffffff * 2U + 1U));
}
| {
"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#libxml2-py_prep#libxml_xmlParseDocTypeDecl.c | libxml2 | libxml2-py.c | libxml_xmlParseDocTypeDecl | 13 | PyObject *
libxml_xmlParseDocTypeDecl(PyObject *self __attribute__ ((__unused__)), PyObject *args) {
xmlParserCtxtPtr ctxt;
PyObject *pyobj_ctxt;
if (libxml_deprecationWarning("xmlParseDocTypeDecl") == -1)
return(((void *)0));
if (!_PyArg_ParseTuple_SizeT(args, (char *)"O:xmlParseDocTypeDecl", &... | {
"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,... |
tinycc#tccelf_prep#fill_got_entry.c | tinycc | tccelf.c | fill_got_entry | 11 | void fill_got_entry(TCCState *s1, Elf64_Rela *rel)
{
int sym_index = ((rel->r_info) >> 32);
Elf64_Sym *sym = &((Elf64_Sym *) symtab_section->data)[sym_index];
struct sym_attr *attr = get_sym_attr(s1, sym_index, 0);
unsigned offset = attr->got_offset;
if (0 == offset)
return;
section_rese... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 1,
"struct_type": 1,
"switch_statement": 0,
"type_casting": 0,... |
libxml2#parserInternals_prep#xmlNewParserCtxt.c | libxml2 | parserInternals.c | xmlNewParserCtxt | 5 | xmlParserCtxtPtr
xmlNewParserCtxt(void)
{
return(xmlNewSAXParserCtxt(((void *)0), ((void *)0)));
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 2,... |
libxml2#xmlunicode_prep#xmlUCSIsYiRadicals.c | libxml2 | xmlunicode.c | xmlUCSIsYiRadicals | 4 | int
xmlUCSIsYiRadicals(int code) {
return(((code >= 0xA490) && (code <= 0xA4CF)));
}
| {
"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,... |
tulipindicators-0.9.1#tiamalgamation_prep#tc_result_free.c | tulipindicators-0.9.1 | tiamalgamation.c | tc_result_free | 5 | void tc_result_free(tc_result *result) {
if (!result) return;
free(result->hits);
free(result);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 1,
"memory_management": 2,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#AREA_OF_A_HEXAGON_prep#main.c | transcoder-set | AREA_OF_A_HEXAGON.c | main | 14 | int main(void) {
int n_success = 0;
double param0[] = {1772.6589509256596,-599.737107809315,1074.1765931782,-1182.4087746714795,8083.035797247716,-6126.414356565494,5370.057504189614,-6947.020794285176,2110.5107873533325,-6458.751326919488};
for(int i = 0; i < len(param0); ++i)
{
if(abs(1 - (0.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,... |
libosip2-5.3.1#osip_authentication_info_prep#osip_authentication_info_get_auth_type.c | libosip2-5.3.1 | osip_authentication_info.c | osip_authentication_info_get_auth_type | 3 | char *osip_authentication_info_get_auth_type(osip_authentication_info_t *authentication_info) {
return authentication_info->auth_type;
}
| {
"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#xmlmemory_prep#xmlMemoryDump.c | libxml2 | xmlmemory.c | xmlMemoryDump | 4 | void
xmlMemoryDump(void)
{
}
| {
"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,... |
hello-2.12.1#quotearg_prep#quotearg_buffer.c | hello-2.12.1 | quotearg.c | quotearg_buffer | 13 | size_t
quotearg_buffer (char *buffer, size_t buffersize,
char const *arg, size_t argsize,
struct quoting_options const *o)
{
struct quoting_options const *p = o ? o : &default_quoting_options;
int e = (*__errno_location ());
size_t r = quotearg_buffer_restyled (buffer, buffersize... | {
"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,... |
json.h#allow_multi_line_strings_prep#json_value_as_number.c | json.h | allow_multi_line_strings.c | json_value_as_number | 6 | struct json_number_s *json_value_as_number(struct json_value_s *const value) {
if (value->type != json_type_number) {
return 0;
}
return (struct json_number_s *)value->payload;
}
| {
"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": 1,
"switch_statement": 0,
"type_casting": 1,... |
transcoder-set#MINIMUM_OPERATIONS_MAKE_GCD_ARRAY_MULTIPLE_K_prep#max.c | transcoder-set | MINIMUM_OPERATIONS_MAKE_GCD_ARRAY_MULTIPLE_K.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,... |
cflow-1.7#malloca_prep#freea.c | cflow-1.7 | malloca.c | freea | 13 | void
freea (void *p)
{
if ((uintptr_t) p & (sa_alignment_max - 1))
{
abort ();
}
if ((uintptr_t) p & sa_alignment_max)
{
void *mem = (char *) p - ((small_t *) p)[-1];
free (mem);
}
}
| {
"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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
gprolog-1.5.0#type_inl_c_prep#Pl_Blt_Non_Generic_Var.c | gprolog-1.5.0 | type_inl_c.c | Pl_Blt_Non_Generic_Var | 5 | Bool
Pl_Blt_Non_Generic_Var(WamWord x)
{
WamWord word, tag_mask; do { WamWord deref_last_word; word = x; ; 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); return (!((tag_mas... | {
"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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
transcoder-set#PAINTING_FENCE_ALGORITHM_prep#cmpfunc.c | transcoder-set | PAINTING_FENCE_ALGORITHM.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,... |
binn-3.0#binn_prep#binn_list_get_value.c | binn-3.0 | binn.c | binn_list_get_value | 20 | BOOL binn_list_get_value(void* ptr, int pos, binn *value) {
int i, type, count, size=0, header_size;
unsigned char *p, *plimit, *base;
ptr = binn_ptr(ptr);
if ((ptr == 0) || (value == 0)) return 0;
if (IsValidBinnHeader(ptr, &type, &count, &size, &header_size) == 0) return 0;
if (type != 0xE0) return 0;
i... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 6,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 3,
"return_statement": 7,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
mtools-4.0.43#hash_prep#hash_lookup.c | mtools-4.0.43 | hash.c | hash_lookup | 5 | int hash_lookup(T_HashTable *H,void *E, void **E2,
size_t *hint)
{
return _hash_lookup(H, E, E2, hint, 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,... |
libxml2#xpath_prep#xmlXPathIsNaN.c | libxml2 | xpath.c | xmlXPathIsNaN | 4 | int
xmlXPathIsNaN(double val) {
return __builtin_isnan (val);
}
| {
"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,... |
mcsim-6.2.0#simmonte_prep#InitSetPoints.c | mcsim-6.2.0 | simmonte.c | InitSetPoints | 14 | BOOL InitSetPoints (PMONTECARLO pMC)
{
register char c;
PFILE pfile;
if (!(pfile = fopen(pMC->szSetPointsFilename, "r")))
ReportError (((void *)0), 0x0003 | 0x8000,
pMC->szSetPointsFilename, ((void *)0));
pMC->pfileSetPoints = pfile;
do { c = getc(pMC->pfileSetPoints); } while (c != '\n')... | {
"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": 1,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
rcs-5.10.1#b-feph_prep#dirtempunlink.c | rcs-5.10.1 | b-feph.c | dirtempunlink | 5 | void
dirtempunlink (void)
{
reap ((0 + 2), (top->behavior. sff), un_link);
}
| {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 0,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 0,
"memory_management": 0,
"memory_operation": 0,
"pointer_type": 0,
"return_statement": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 1,... |
tmux#status_prep#status_prompt_load_history.c | tmux | status.c | status_prompt_load_history | 34 | void
status_prompt_load_history(void)
{
FILE *f;
char *history_file, *line, *tmp;
size_t length;
if ((history_file = status_prompt_find_history_file()) == ((void *)0))
return;
log_debug("loading history from %s", history_file);
f = fopen(history_file, "r");
if (f == ((void *)0)) {
log_debug("%s: %s", history... | {
"array_type": 1,
"break_continue_statement": 1,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 5,
"memory_management": 3,
"memory_operation": 1,
"pointer_type": 4,
"return_statement": 2,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
gawk-5.2.2#getopt1_prep#_getopt_long_only_r.c | gawk-5.2.2 | getopt1.c | _getopt_long_only_r | 8 | int
_getopt_long_only_r (int argc, char *const *argv, const char *options,
const struct option *long_options, int *opt_index,
struct _getopt_data *d)
{
return _getopt_internal_r (argc, argv, options, long_options, opt_index,
1, d, 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": 2,
"switch_statement": 0,
"type_casting": 0,... |
dap-3.10#ps_prep#pict_scale.c | dap-3.10 | ps.c | pict_scale | 27 | void pict_scale(pict *p, double cx, double cy, double sx, double sy)
{
int ptn;
int t;
while (p)
{
if (sx >= sy)
p->pict_r *= sy;
else
p->pict_r *= sx;
for (t = 0; t < p->pict_ntxt; t++)
{
p->pict_tpt[t][0] = cx + sx * (p->pict_tpt[t][0] - cx);
p->pict_tpt[t][1] = cy + sy * (p->pict... | {
"array_type": 2,
"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": 0,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 0,... |
gawk-5.2.2#node_prep#r_free_wstr.c | gawk-5.2.2 | node.c | r_free_wstr | 12 | void
r_free_wstr(NODE *n)
{
((void) (0));
if ((n->flags & WSTRCUR) != 0) {
((void) (0));
pma_free(n->sub.val.wsp);
}
n->sub.val.wsp = ((void *)0);
n->sub.val.wslen = 0;
n->flags &= ~WSTRCUR;
}
| {
"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": 3,... |
libxml2#schematron_prep#xmlSchematronNewMemParserCtxt.c | libxml2 | schematron.c | xmlSchematronNewMemParserCtxt | 25 | xmlSchematronParserCtxtPtr
xmlSchematronNewMemParserCtxt(const char *buffer, int size)
{
xmlSchematronParserCtxtPtr ret;
if ((buffer == ((void *)0)) || (size <= 0))
return (((void *)0));
ret =
(xmlSchematronParserCtxtPtr)
xmlMalloc(sizeof(xmlSchematronParserCtxt));
if (ret == ((v... | {
"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": 0,
"return_statement": 4,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 9,... |
nettle-3.9.1#dsa-verify_prep#nettle_dsa_verify.c | nettle-3.9.1 | dsa-verify.c | nettle_dsa_verify | 39 | int
nettle_dsa_verify(const struct dsa_params *params,
const mpz_t y,
size_t digest_size,
const uint8_t *digest,
const struct dsa_signature *signature)
{
mpz_t w;
mpz_t tmp;
mpz_t v;
int res;
if (((signature->r)->_mp_size < 0 ? -1 : (signature->r)->_mp_size > 0) <= 0 || __gmpz_cmp(signature->r... | {
"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": 4,
"struct_type": 2,
"switch_statement": 0,
"type_casting": 0,... |
screen-4.9.0#fileio_prep#ReadFile.c | screen-4.9.0 | fileio.c | ReadFile | 41 | char *
ReadFile(char *fn, int *lenp)
{
int i, l, size;
char c, *bp, *buf;
struct stat stb;
do {} while (0);
do {} while (0);
if ((i = secopen(fn, 00, 0)) < 0) {
Msg((*__errno_location ()), "no %s -- no slurp", fn);
return ((void *)0);
}
if (fstat(i, &stb)) {
Msg((*__errno_location ()), "no good %s -- no s... | {
"array_type": 0,
"break_continue_statement": 0,
"enum_type": 0,
"for_loop": 1,
"function_pointer": 0,
"goto_statement": 0,
"if_statement": 7,
"memory_management": 1,
"memory_operation": 0,
"pointer_type": 2,
"return_statement": 4,
"struct_type": 0,
"switch_statement": 0,
"type_casting": 4,... |
transcoder-set#FIND_REPETITIVE_ELEMENT_1_N_1_2_prep#max.c | transcoder-set | FIND_REPETITIVE_ELEMENT_1_N_1_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,... |
make-4.4.1#hash_prep#hash_print_stats.c | make-4.4.1 | hash.c | hash_print_stats | 11 | void
hash_print_stats (struct hash_table *ht, FILE *out_FILE)
{
fprintf (out_FILE, gettext ("Load=%lu/%lu=%.0f%%, "), ht->ht_fill, ht->ht_size,
100.0 * (double) ht->ht_fill / (double) ht->ht_size);
fprintf (out_FILE, gettext ("Rehash=%u, "), ht->ht_rehashes);
fprintf (out_FILE, gettext ("Collisions=%lu... | {
"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": 2,... |
libxml2#xlink_prep#xlinkSetDefaultHandler.c | libxml2 | xlink.c | xlinkSetDefaultHandler | 4 | void
xlinkSetDefaultHandler(xlinkHandlerPtr handler) {
xlinkDefaultHandler = handler;
}
| {
"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,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.