code stringlengths 6 250k | repo_name stringlengths 5 70 | path stringlengths 3 177 | language stringclasses 1
value | license stringclasses 15
values | size int64 6 250k |
|---|---|---|---|---|---|
#include "loop.h"
#include <allegro.h>
#include <stdio.h>
#include "helpers.h"
#include "config.h"
#include "level.h"
#include "hero.h"
#include "zombie.h"
#include "States/options.h"
#include "GameManager.h"
void Start()
{
Log("ZombieSlasher v. 0.9\nLogger is working...\n");
Log("Loading config file...\n");
... | BartoszF/ZombieSlasher | loop.c | C | apache-2.0 | 6,729 |
/*
******************************************************************************
*
* Copyright (C) 1999-2009, International Business Machines
* Corporation and others. All Rights Reserved.
*
******************************************************************************
* file name: ubidi.c
* encoding: US-A... | ckelsel/chromium-4.0.210.0_p26329 | third_party/icu/source/common/ubidi.c | C | apache-2.0 | 87,735 |
/*!The Treasure Box Library
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | tboox/tbox | src/tbox/libc/string/strnirchr.c | C | apache-2.0 | 1,364 |
/*
* Copyright (c) 2018 Ilya Tagunov <tagunil@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <device.h>
#include <init.h>
#include <pinmux.h>
#include <sys_io.h>
#include <pinmux/stm32/pinmux_stm32.h>
/* pin assignments for NUCLEO-L073RZ board */
static const struct pin_config... | GiulianoFranchetto/zephyr | boards/arm/nucleo_l073rz/pinmux.c | C | apache-2.0 | 1,331 |
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright noti... | execunix/vinos | external/bsd/tcpdump/dist/addrtoname.c | C | apache-2.0 | 30,946 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | scalingdata/Impala | be/src/util/mutexes.c | C | apache-2.0 | 1,854 |
#ifdef HAVE_CONFIG_H
#include "../ext_config.h"
#endif
#include <php.h>
#include "../php_ext.h"
#include "../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
#include "kernel/memory.h"
#include "kernel/fcall.h"
#include "kernel/oper... | DaveM2011/arangodb-zep | ext/arangodbclient/valuevalidator.zep.c | C | apache-2.0 | 1,908 |
/*
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License is
* located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "licen... | LiberatorUSA/GUCEF | dependencies/aws-c-common/.cbmc-batch/jobs/aws_string_new_from_c_str/aws_string_new_from_c_str_harness.c | C | apache-2.0 | 1,327 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "funcoes.h"
// tamanho da agenda telefonica
int A_TAMANHO = 0;
/* setar o campo idade dos MAX elementos do vetor com o valor -1,
significando que os elementos da agenda A estão disponíveis. */
int inicializa_agenda(struct agenda a[MAX])
{
//
... | lbovolini/Trabalhos-C | Trabalho 2 - Agenda telefonica/src/funcoes.c | C | apache-2.0 | 8,496 |
#include <stdio.h>
#include <string.h>
#include <openssl/rand.h>
#include "PBEWithMD5AndDES.h"
static void asctohex(unsigned char * asc, size_t size)
{
size_t i;
for (i = 0; i < size; i ++)
printf("%02x", asc[i]);
printf("\n");
}
int main(void)
{
unsigned... | binsgit/PBEWithMD5AndDES | c/example.c | C | apache-2.0 | 1,906 |
/* mbed Microcontroller Library
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | NordicSemiconductor/mbed | libraries/mbed/targets/hal/TARGET_STM/TARGET_DISCO_F303VC/pwmout_api.c | C | apache-2.0 | 12,288 |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1996-2020. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | vladdu/otp | erts/emulator/beam/io.c | C | apache-2.0 | 208,256 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | lib/node_modules/@stdlib/blas/ext/base/dsort2hp/src/dsort2hp.c | C | apache-2.0 | 4,645 |
/** @file
This is an origin server / intercept plugin, which implements flexible health checks.
@section license
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LIC... | chenglongwei/trafficserver | plugins/healthchecks/healthchecks.c | C | apache-2.0 | 18,357 |
/*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at w... | GoogleChromeLabs/wasm-av1 | third_party/aom/aom_dsp/grain_synthesis.c | C | apache-2.0 | 61,783 |
/**
* checkbutton.c
* show you how to use GtkCheckButton.
*/
#include <gtk/gtk.h>
static void check_toggled( GtkToggleButton *button, GtkWidget *widget );
int main( int argc, char **argv ) {
gtk_init( &argc, &argv );
GtkWidget *window = gtk_window_new( GTK_WINDOW_TOPLEVEL );
gtk_window_set_title( GTK_WINDOW(... | alexhilton/miscellaneous | gtk-work/foundation-gtk/chap04/checkbutton.c | C | apache-2.0 | 1,686 |
/*
* justmisra.c
*
* Created on: Oct 29, 2014
* Author: Administrator
*/
#include"justmisra.h"
#define led1 0x0001
#define led2 0x0002
#define led3 0x0004
#define led4 0x0008
#define led5 0x0010
#define led6 0x0020
volatile unsigned char i;
void Delay(unsigned int tic)
{... | indra1234/workprobe1 | src/justmisra.c | C | apache-2.0 | 4,243 |
/*
Copyright (C) 2001-2011, Parrot Foundation.
=head1 NAME
src/dynext.c - Dynamic extensions to Parrot
=head1 DESCRIPTION
Functions for loading and initializing dynamic link libraries.
=head2 Functions
=over 4
=cut
*/
#include "parrot/parrot.h"
#include "parrot/dynext.h"
#include "dynext.str"
#include "pmc/pmc... | gagern/parrot | src/dynext.c | C | artistic-2.0 | 20,830 |
#include <stdio.h>
#include <string.h>
int main() {
char a[] = "Humpty dumpty sat on a wall";
char search_char = 'u';
char replace_char = 'o';
char *ap = (char*)&a[0];
printf("Before: %s\n",a);
while( (ap=strchr(ap,search_char)) != NULL) {
ap[0] = replace_char;
}
printf("After: %s\n",a);
return 0;
}
| staropram/c_tutorial | 11_strings/string_functions.c | C | bsd-2-clause | 316 |
/* { dg-do run } */
/* PR c/58943 */
unsigned int x[1] = { 2 };
unsigned int
foo (void)
{
x[0] |= 128;
return 1;
}
int
main ()
{
x[0] |= foo ();
if (x[0] != 131)
__builtin_abort ();
return 0;
}
| alpine9000/BitOS | tests/gcc.c-torture/pr58943.c | C | bsd-2-clause | 211 |
/*
* Copyright 2016, Data61, CSIRO (ABN 41 687 119 230)
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "dspace.h"
#include "stdio_dspace.h"
#include "screen_dspace.h"
/*! @file
@brief Common dataspace interface functions.
This module implements the actual functions defined in <refos-rpc/data_se... | seL4/refos | impl/apps/console_server/src/dispatchers/dspace/dspace.c | C | bsd-2-clause | 7,278 |
#include "redis_proxy.h"
char *redis_command_strings[] = {"PING\r\n", "SET", "GET"};
handler_response redis_proxy_configure(json_t* config, void **conf_struct)
{
redis_proxy_config *module_config;
// Error for non-object
if(!json_is_object(config))
{
log_message(LOG_ERROR,
"redis_proxy configur... | CloudSites/OpenBalance | src/modules/redis_proxy/redis_proxy.c | C | bsd-2-clause | 11,296 |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
static void ngx_destroy_cycle_pools(ngx_conf_t *conf);
static ngx_int_t ngx_init_zone_pool(ngx_cycle_t *cycle,
ngx_shm_zone_t *shm_zone);
static ngx_int_t ngx_test_lockfile(u_ch... | zhao-mj/nginx-1.9.15 | src/core/ngx_cycle.c | C | bsd-2-clause | 35,733 |
/* copy.c -- n-ary tree */
#include <stdlib.h>
#include "base/result.h"
#include "datastruct/ntree.h"
#include "impl.h"
result_t ntree_copy(ntree_t *t,
ntree_copy_fn_t *fn,
void *opaque,
ntree_t **new_t)
{
result_t err;
void ... | dpt/DPTLib | libraries/datastruct/ntree/copy.c | C | bsd-2-clause | 960 |
/*
*Jakob Fowler
*Ping
*Program 8
*06/16/17
*/
#include "simpletools.h"
const int TRIGGER_PIN = 0;
const int ECHO_PIN = 1;
int main()
{
long duration;
long distance;
low(TRIGGER_PIN);
low(ECHO_PIN);
pause(250);
while(1)
{
pulse_out(TRIGGER_PIN, 10);
duration = pulse_in(ECHO_PIN, 1);
... | JMFOWLE4904/Code-Repository | Ping/Project Ping.c | C | bsd-2-clause | 555 |
/* -*- mode:C; c-file-style: "bsd" -*- */
/*
* Copyright (c) 2012-2015 Yubico AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the ... | dmitriykuptsov/yubikey-personalization | tests/test_yk_utilities.c | C | bsd-2-clause | 2,854 |
int main(int argc, int* argv) {
int* i;
int* j;
initLibrary();
i=malloc(2*4);
j=i;
*i=0;
*(i+1)=3;
if( *(i++)++ == 0)
if( *j == 1)
if( *i == 3)
print("OK");
println();
}
| stefanse/CS4All | test-a1/test_post_expression_deref.c | C | bsd-2-clause | 206 |
/**@file
Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-li... | fishyu2/Nt32Pkg | MetronomeDxe/Metronome.c | C | bsd-2-clause | 3,318 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__unsigned_int_fscanf_square_52c.c
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-52c.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: fscanf Read data from the console using fscanf... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE190_Integer_Overflow/s05/CWE190_Integer_Overflow__unsigned_int_fscanf_square_52c.c | C | bsd-3-clause | 1,876 |
#include "common.h"
memcached_return memcached_do(memcached_server_st *ptr, const void *command,
size_t command_length, uint8_t with_flush)
{
memcached_return rc;
ssize_t sent_length;
WATCHPOINT_ASSERT(command_length);
WATCHPOINT_ASSERT(command);
if ((rc= memcached_connect(pt... | RJ/libmemcached | libmemcached/memcached_do.c | C | bsd-3-clause | 642 |
/*
* Data reader.
*
* Copyright (c) 2007-2010, Naoaki Okazaki
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
... | hiroshi-manabe/crfsuite-variableorder | frontend/reader.c | C | bsd-3-clause | 6,778 |
/* $NetBSD: ip_state.c,v 1.17 1999/02/02 19:57:32 cjs Exp $ */
/*
* Copyright (C) 1995-1998 by Darren Reed.
*
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and due credit is given
* to the original author and the contributors.
*/
#if !defined(lint)
#if... | MarginC/kame | netbsd/sys/netinet/ip_state.c | C | bsd-3-clause | 18,442 |
/*
* Python Universal Functions Object -- Math for all types, plus fast
* arrays math
*
* Full description
*
* This supports mathematical (and Boolean) functions on arrays and other python
* objects. Math on large arrays of basic C types is rather efficient.
*
* Travis E. Oliphant 2005, 2006 oliphant@ee.byu.... | Ademan/NumPy-GSoC | numpy/core/src/umath/ufunc_object.c | C | bsd-3-clause | 138,154 |
#include <exception.h>
#include <thread.h>
#include <sched.h>
#include <signal.h>
void exc_before_leave(exc_frame_t *kframe) {
thread_t *td = thread_self();
td->td_kframe = kframe;
/* If thread requested not to be preempted, then do not switch out! */
if (td->td_pdnest > 0)
return;
if (td->td_flags & ... | czapiga/mimiker | sys/exception.c | C | bsd-3-clause | 660 |
/*
* $Id: unistd_def_path_delimiter.c,v 1.4 2006-09-25 14:51:15 obarthel Exp $
*
* :ts=4
*
* Portable ISO 'C' (1994) runtime library for the Amiga computer
* Copyright (c) 2002-2015 by Olaf Barthel <obarthel (at) gmx.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or wit... | adtools/clib2 | library/unistd_def_path_delimiter.c | C | bsd-3-clause | 1,756 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__int_listen_socket_postdec_52a.c
Label Definition File: CWE191_Integer_Underflow__int.label.xml
Template File: sources-sinks-52a.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: listen_socket Read data using a listen ... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s04/CWE191_Integer_Underflow__int_listen_socket_postdec_52a.c | C | bsd-3-clause | 7,587 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__char_rand_postdec_54d.c
Label Definition File: CWE191_Integer_Underflow.label.xml
Template File: sources-sinks-54d.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: rand Set data to result of rand()
* GoodSource: Se... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s04/CWE191_Integer_Underflow__char_rand_postdec_54d.c | C | bsd-3-clause | 1,656 |
/****************************************************************************
*
* Copyright (c) 2012-2016 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... | Aerotenna/Firmware | boards/px4/fmu-v5/src/init.c | C | bsd-3-clause | 10,500 |
/* xscreensaver, Copyright (c) 1992-2013 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice ... | AstralDynamics/photo-tagger | xscreensaver-5.29/hacks/noseguy.c | C | bsd-3-clause | 16,923 |
/*-
* Copyright 1997 Massachusetts Institute of Technology
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
* granted, provided that both the above copyright notice and this
* permission notice appear in all copies, that both the a... | MarginC/kame | freebsd2/usr.bin/fetch/ftp.c | C | bsd-3-clause | 13,287 |
/*-
* Copyright (c) 1983, 1993 The Regents of the University of California.
* Copyright (c) 2013 Mariusz Zaborski <oshogbo@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* ... | jhbsz/OSI-OS | usr.sbin/rwhod/rwhod.c | C | bsd-3-clause | 20,952 |
/*
FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
***************************************************************************
* ... | jedediahfrey/STM32F4-Discovery_FW_V1.1.0_Makefiles | FreeRTOS/FreeRTOS/Demo/Common/Full/print.c | C | bsd-3-clause | 5,844 |
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
#include "common_tools.h"
#include "opengles.h"
typedef void (APIENTRY *glViewportArrayvOESPROC) (jint, jint, intptr_t);
typedef void (APIENTRY *glViewportIndexedfOESPROC) (jint, jfloa... | TheMrMilchmann/lwjgl3 | modules/lwjgl/opengles/src/generated/c/org_lwjgl_opengles_OESViewportArray.c | C | bsd-3-clause | 4,093 |
/*
* CRFsuite library.
*
* Copyright (c) 2007-2010, Naoaki Okazaki
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyrig... | hiroshi-manabe/crfsuite-variableorder | lib/crf/src/crf.c | C | bsd-3-clause | 14,529 |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <pthread.h>
#include <assert.h>
#include "memcached.h"
#include "cproxy.h"
#include "work.h"
#include "agent.h"
#include "log.h"
#inclu... | steveyen/moxi | agent_config.c | C | bsd-3-clause | 42,802 |
// RUN: jlang-cc -fsyntax-only -verify -triple x86_64-unknown-unknown %s
int complete_array_from_init[] = { 1, 2, [10] = 5, 1, 2, [5] = 2, 6 };
int complete_array_from_init_check[((sizeof(complete_array_from_init) / sizeof(int)) == 13)? 1 : -1];
int iarray[10] = {
[0] = 1,
[1 ... 5] = 2,
[ 6 ... 6 ] = 3,
[ 8... | JianpingZeng/xcc | xcc/java/test/jlang/Sema/designated-initializers.c | C | bsd-3-clause | 5,766 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_w32_spawnvp_22b.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-22b.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: listen_socket Read data... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s09/CWE78_OS_Command_Injection__wchar_t_listen_socket_w32_spawnvp_22b.c | C | bsd-3-clause | 6,037 |
/*
* Copyright (c) 2012-2014 Apple Inc. All Rights Reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* c... | GaloisInc/hacrypto | src/C/Security-57031.40.6/Security/sec/SOSCircle/Regressions/sc-20-keynames.c | C | bsd-3-clause | 4,806 |
// Copyright Verisign, Inc and NLNetLabs. See LICENSE file for details
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "logger.h"
#include "opt_parse.h"
#define _GNU_SOURCE
int log_level = LOG_LEVELS_CRITICAL;
... | getdnsapi/libnss_getdns | opt_parse.c | C | bsd-3-clause | 7,549 |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
*
* Copyright (C) 1997 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*/
#include "adio.h"
#include "mpio.h"
#if defined(MPIO_BUILD_PROFILING) || defined(HAVE_WEAK_SYMBOLS)
#if defined(HAVE_WEAK_SYMBOLS)
#if defined(HAVE_PRAGMA_WEAK)
#if ... | gnu3ra/SCC15HPCRepast | INSTALLATION/mpich2-1.4.1p1/src/mpi/romio/mpi-io/fortran/set_atomf.c | C | bsd-3-clause | 3,492 |
/*
* Copyright © 2010 Intel Corporation
* Copyright © 2012 Collabora, Ltd.
* Copyright © 2012 Jonas Ådahl
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, includi... | endlessm/chromium-browser | third_party/weston/src/clients/confine.c | C | bsd-3-clause | 12,847 |
/**
*******************************************************************************
* @file Example_OneWire.c
* @author Vojtěch Vigner <vojtech.vigner@gmail.com>
* @date 18-February-2013
* @brief Simple code example for 1-Wire library.
*********************************************************************... | vigisson/OneWire | code/Example_OneWire.c | C | bsd-3-clause | 1,290 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_console_w32_spawnlp_04.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-04.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read input from the consol... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s02/CWE78_OS_Command_Injection__char_console_w32_spawnlp_04.c | C | bsd-3-clause | 5,297 |
//
// process.c
// masochist
//
// Created by Squiffy on 11/11/14.
// Copyright (c) 2014 squiffypwn. All rights reserved.
//
#include <mach/mach_types.h>
#include <IOKit/IOLib.h>
#include <mach-o/loader.h>
#include <mach-o/nlist.h>
#include <mach/mach_types.h>
#include <sys/systm.h>
#include <stdbool.h>
#include "... | squiffy/Masochist | libmasochist/process.c | C | bsd-3-clause | 3,451 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE195_Signed_to_Unsigned_Conversion_Error__negative_malloc_67b.c
Label Definition File: CWE195_Signed_to_Unsigned_Conversion_Error.label.xml
Template File: sources-sink-67b.tmpl.c
*/
/*
* @description
* CWE: 195 Signed to Unsigned Conversion Error
* BadSource: n... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE195_Signed_to_Unsigned_Conversion_Error/s02/CWE195_Signed_to_Unsigned_Conversion_Error__negative_malloc_67b.c | C | bsd-3-clause | 2,557 |
/*
* OS specific functions for UNIX/POSIX systems
* Copyright (c) 2005-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include <time.h>
#include <sys/wait.h>
#ifdef ANDROID
#include <sys/capability.h... | myauie/wlan-daemon | os_unix.c | C | bsd-3-clause | 14,552 |
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <sys/types.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include <pwd.h>
#include <libgen.h>
#include <gl... | seanlong/crosswalk | application/tools/linux/xwalk_launcher_main.c | C | bsd-3-clause | 4,770 |
/*
* services/mesh.c - deal with mesh of query states and handle events for that.
*
* Copyright (c) 2007, NLnet Labs. All rights reserved.
*
* This software is open source.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | chantra/unbound | services/mesh.c | C | bsd-3-clause | 50,649 |
/*-
* Copyright (c) 1998 Mark Newton
* Copyright (c) 1994, 1997 Christos Zoulas.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the abo... | TigerBSD/TigerBSD | FreeBSD/sys/compat/svr4/svr4_fcntl.c | C | isc | 15,788 |
/*-
* Copyright (c) 2009-2012,2016 Microsoft Corp.
* Copyright (c) 2012 NetApp Inc.
* Copyright (c) 2012 Citrix Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions... | TigerBSD/TigerBSD | FreeBSD/sys/dev/hyperv/vmbus/hv_ring_buffer.c | C | isc | 13,750 |
/*
* Copyright (c) 2005 David Xu <davidxu@freebsd.org>
* Copyright (c) 2003 Daniel Eischen <deischen@freebsd.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of ... | eriknstr/ThinkPad-FreeBSD-setup | FreeBSD/lib/libthr/thread/thr_fork.c | C | isc | 7,865 |
/**
******************************************************************************
* @file usb_dcd.c
* @author MCD Application Team
* @version V2.2.0
* @date 09-November-2015
* @brief Peripheral Device Interface Layer
******************************************************************************
... | SkRobo/Eurobot-2017 | LowLevel/Small robot/Library/core/src/usb_dcd.c | C | mit | 9,544 |
#include <stdio.h>
#define min(a, b) a<b?a:b
int main(void) {
int a[80][80];
int dp[80][80];
int i, j;
for (i = 0; i < 80; i++)
for (j = 0; j < 80; j++)
scanf("%d", &a[i][j]);
for (i = 79; i >= 0; i--) {
if (i == 79)
dp[79][i] = a[79][i];
else
... | paramsingh/codechef-solutions | src/practice/numbers/euler/81.c | C | mit | 656 |
/* Generated by CIL v. 1.7.0 */
/* print_CIL_Input is false */
struct _IO_FILE;
struct timeval;
extern void signal(int sig , void *func ) ;
extern float strtof(char const *str , char const *endptr ) ;
typedef struct _IO_FILE FILE;
extern int atoi(char const *s ) ;
extern double strtod(char const *str , char co... | tum-i22/obfuscated-programs | tigress-generated-programs/empty-Seed4-RandomFuns-Type_int-ControlStructures_11-BB2-ForBound_boundedInput-Operators_Shiftlt_Shiftrt_Lt_Gt_Le_Ge_Eq_Ne_BAnd_BXor_BOr.c | C | mit | 2,902 |
/**
******************************************************************************
* @file stm32f4_discovery.c
* @author MCD Application Team
* @version V1.1.1
* @date 14-May-2012
* @brief This file provides set of firmware functions to manage Leds and
* push-button available on STM32F4-... | PUT-PTM/STM32F4_FruitKeyboard | Utilities/STM32F4-Discovery/stm32f4_discovery.c | C | mit | 7,195 |
/*
* HID++ 2.0 library.
*
* Copyright 2015 Benjamin Tissoires <benjamin.tissoires@gmail.com>
* Copyright 2015 Red Hat, Inc
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without re... | whot/libratbag-old | src/hidpp20.c | C | mit | 27,573 |
/*
* Copyright (C) 2014-2016 Wilddog Technologies. All Rights Reserved.
*
* FileName: wilddog_common.c
*
* Description: common functions.
*
* History:
* Version Author Date Description
*
* 0.4.0 Jimmy.Pan 2015-05-15 Create file.
* 0.4.3 Jimmy.Pan 2015-07-04 A... | WildDogTeam/wilddog-client-c | src/wilddog_common.c | C | mit | 4,432 |
//
// Copyright (c) .NET Foundation and Contributors
// Portions Copyright (c) 2001-2004 Swedish Institute of Computer Science. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include <nanoHAL_Network.h>
#include "lwip/opt.h"
#if LWIP_NETCONN /* don't build if not confi... | nanoframework/nf-interpreter | targets/ESP32/_lwIP/nf_api_msg.c | C | mit | 81,500 |
/* Capstone Disassembly Engine */
/* BPF Backend by david942j <david942j@gmail.com>, 2019 */
#include <string.h>
#include "BPFConstants.h"
#include "BPFMapping.h"
#include "../../utils.h"
#ifndef CAPSTONE_DIET
static const name_map group_name_maps[] = {
{ BPF_GRP_INVALID, NULL },
{ BPF_GRP_LOAD, "load" },
{ BPF_... | capstone-rust/capstone-rs | capstone-sys/capstone/arch/BPF/BPFMapping.c | C | mit | 10,743 |
/* ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION!
NOTE: This is the code for the HB-25 motor controller from the old Arlo platform.
You MUST edit the settings in
~/.arlobot/per_robot_settings_for_propeller_c_code.h
based on the physical layout of your robot!
For each QUESTION:
UNCOMMENT '#define' lin... | DTU-R3/ArloBot | PropellerCodeForArloBot/ROSInterfaceForArloBotWithHB25.c | C | mit | 57,227 |
#include <gtk/gtk.h>
/* This is a callback function. The data arguments are ignored
* in this example. More on callbacks below. */
static void hello( GtkWidget *widget,
gpointer data )
{
g_print ("Hello World\n");
}
static gboolean delete_event( GtkWidget *widget,
... | TarangKhanna/IRCClient | hello.c | C | mit | 3,389 |
/****************************************************************************
* Copyright (c) 1998-2001,2006 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy ... | impedimentToProgress/UCI-BlueChip | snapgear_linux/user/ncurses/ncurses-5.6/ncurses/tinfo/comp_expand.c | C | mit | 6,436 |
#include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static integer c__1 = 1;
static doublereal c_b19 = 1.;
static doublereal c_b21 = 0.;
static integer c__2 = 2;
static logical c_false = FALSE_;
static integer c__3 = 3;
/* Subroutine */ int dtgsna_(char *job, char *howmny, logical *select,
intege... | dacap/loseface | third_party/clapack/SRC/dtgsna.c | C | mit | 22,804 |
//%LICENSE////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015 Devchandra M. Leishangthem (dlmeetei at gmail dot com)
//
// Distributed under the MIT License (See accompanying file LICENSE)
//
//////////////////////////////////////////////////////////////////////////
//
//%/////... | deleisha/evt | evt_test.c | C | mit | 4,874 |
/*
* File : serial.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://openlab.rt-thread.com/license/LICENSE
*
* Change Logs:
* Date ... | cedar-renjun/air-conditioning-assistant | rt-thread/libcpu/arm/s3c44b0/serial.c | C | mit | 2,442 |
/* $NetBSD: getopt_long.c,v 1.27 2015/09/01 19:39:57 kamil Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Dieter Baron and Thomas Klausner.
*
* Redistribution and use in source and binary forms... | cahirwpz/wifire-os | lib/libc/stdlib/getopt_long.c | C | mit | 13,176 |
uniform sampler2D u_Texture0;
uniform sampler2D u_Texture1;
uniform sampler2D u_Texture2;
uniform sampler2D u_Texture3;
uniform float u_Time;
uniform vec2 u_Resolution;
uniform vec2 u_TexResolution;
uniform float u_Zoom;
//uniform vec4 u_SourceRect;
//uniform vec4 u_DestRect;
varying vec2 v_TexCoords;
$
$
void ... | gavanw/voxelquestiso | src/www/shaders/upscaleShader.c | C | mit | 528 |
/* Generated by CIL v. 1.7.0 */
/* print_CIL_Input is false */
struct _IO_FILE;
struct timeval;
extern float strtof(char const *str , char const *endptr ) ;
extern void signal(int sig , void *func ) ;
typedef struct _IO_FILE FILE;
extern int atoi(char const *s ) ;
extern double strtod(char const *str , char co... | tum-i22/obfuscated-programs | tigress-generated-programs/empty-Seed4-RandomFuns-Type_int-ControlStructures_14-BB2-ForBound_constant-Operators_PlusA_MinusA_Lt_Gt_Le_Ge_Eq_Ne_Mult_Div_Mod.c | C | mit | 3,738 |
/***************************************************************************//**
* \file USBUART_cls.c
* \version 3.0
*
* \brief
* This file contains the USB Class request handler.
*
********************************************************************************
* \copyright
* Copyright 2008-2015, Cypress Se... | getopenmono/mono_framework | src/cypress/psoc5/USBUART_cls.c | C | mit | 5,108 |
#include "portcheck.h"
#include <stdlib.h>
#include <event2/event.h>
#include <event2/buffer.h>
#include <event2/bufferevent.h>
#include <zlib.h>
#include "server.h"
#include "client.h"
#include "log.h"
#include "packet.h"
#include "ed2k_proto.h"
static void send_hello(struct client *clnt)
{
static const char n... | gureedo/ed2kd | src/portcheck.c | C | mit | 4,629 |
/*
id3print: display routines for ID3 tags (including filtering of UTF8 to ASCII)
copyright 2006-2016 by the mpg123 project - free software under the terms of the LGPL 2.1
see COPYING and AUTHORS files in distribution or http://mpg123.org
initially written by Thomas Orgis
*/
#include "mpg123app.h"
#include "commo... | svenskan/pronounce | vendor/mpg123/src/metaprint.c | C | mit | 12,085 |
/*******************************************************************************
* File Name: EXT_T.c
* Version 2.10
*
* Description:
* This file contains API to enable firmware control of a Pins component.
*
* Note:
*
********************************************************************************
* Copyright 2008-... | CAIMANICS/EzTempRH-for-Raspberry-Pi | firmware/app.cydsn/Generated_Source/PSoC4/EXT_T.c | C | mit | 4,742 |
/**
* This program is written according to the example described in
* http://www.mcs.anl.gov/research/projects/mpi/mpi-standard/mpi-report-1.1/node86.htm#Node86
*/
#include<stdio.h>
#include<mpi.h>
#include<assert.h>
int main(int argc, char* argv[]){
int rank;
int procs;
int* sendBuf;
int* rcvBuf;
int* s... | byu-vv-lab/mercury | src/test/resources/edu/byu/cs/vv/Examples/mpi/collective/bcast_good.c | C | mit | 1,344 |
/*
Copyright (C) 1996 Digi International.
For technical support please email digiLinux@dgii.com or
call Digi tech support at (612) 912-3456
Much of this design and code came from epca.c which was
copyright (C) 1994, 1995 Troy De Jongh, and subsquently
modified by David Nugent, Christoph Lameter, Mike McL... | empeg/empeg-hijack | drivers/char/epca.c | C | gpl-2.0 | 126,184 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License")... | skyHALud/codenameone | Ports/iOSPort/xmlvm/apache-harmony-6.0-src-r991881/drlvm/vm/tests/unit/thread/test_ti_raw_monitors.c | C | gpl-2.0 | 13,529 |
/*
* wm8994.c -- WM8994 ALSA SoC Audio driver
*
* Copyright 2009 Wolfson Microelectronics plc
*
* Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* publishe... | morogoku/MoRoKernel-I9300-4.4.4 | sound/soc/codecs/wm8994.c | C | gpl-2.0 | 125,588 |
/*
* Windows Media Audio Voice decoder.
* Copyright (c) 2009 Ronald S. Bultje
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of... | ashishlal/pjproject-2.0.1 | third_party/ffmpeg/libavcodec/wmavoice.c | C | gpl-2.0 | 82,712 |
/*
* $Id: util.c,v 1.1 2010/02/08 07:43:12 masonyu Exp $
*
* Authors:
* Lars Fenneberg <lf@elemental.net>
*
* This software is Copyright 1996,1997 by the above mentioned author(s),
* All Rights Reserved.
*
* The license which is distributed with this software in the file COPYRIGHT
* applies... | ysleu/RTL8685 | uClinux-dist/user/radvd-1.5/util.c | C | gpl-2.0 | 2,360 |
/****************************************************************************
* Copyright (c) 1998-2007,2010 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy ... | ysleu/RTL8685 | uClinux-dist/lib/ncurses/form/fld_dup.c | C | gpl-2.0 | 4,523 |
/*
* Copyright (c) 2012, Intel Corporation
* Copyright (c) 2015, Red Hat, Inc.
* Copyright (c) 2015, 2016 Linaro Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/
#... | yyu168/linux | drivers/acpi/spcr.c | C | gpl-2.0 | 5,903 |
/* arch/arm/mach-msm/htc_battery.c
*
* Copyright (C) 2008 HTC Corporation.
* Copyright (C) 2008 Google, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.... | rqmok/android_kernel_htc_msm7x30 | arch/arm/mach-msm/htc_battery.c | C | gpl-2.0 | 63,162 |
/*
Hopper PCI bridge driver
Copyright (C) Manu Abraham (abraham.manu@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later v... | ljalves/linux-tbs-drivers | linux/drivers/media/dvb/mantis/hopper_cards.c | C | gpl-2.0 | 7,373 |
/*
* thermal.c - Generic Thermal Management Sysfs support.
*
* Copyright (C) 2008 Intel Corp
* Copyright (C) 2008 Zhang Rui <rui.zhang@intel.com>
* Copyright (C) 2008 Sujith Thomas <sujith.thomas@intel.com>
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* This program is... | TeamWin/android_kernel_samsung_j2lte | drivers/thermal/thermal_core.c | C | gpl-2.0 | 47,950 |
/*
* S/390 translation
*
* Copyright (c) 2009 Ulrich Hecht
* Copyright (c) 2010 Alexander Graf
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the Lice... | PKUCloud/qemu-1.2.2-replay | target-s390x/translate.c | C | gpl-2.0 | 169,110 |
/*
* OMAP3 Power Management Routines
*
* Copyright (C) 2006-2008 Nokia Corporation
* Tony Lindgren <tony@atomide.com>
* Jouni Hogander
*
* Copyright (C) 2007 Texas Instruments, Inc.
* Rajendra Nayak <rnayak@ti.com>
*
* Copyright (C) 2005 Texas Instruments, Inc.
* Richard Woodruff <r-woodruff2@ti.com>
*
* B... | MikeC84/mac_kernel_moto_minnow | arch/arm/mach-omap2/pm34xx.c | C | gpl-2.0 | 24,717 |
#include "command.h"
struct command_def_t commands[] = {
/* Rule name | Flags | Arity | Function pointer */
{"print", FLAG_NONE, 1, 1, cmd_print},
{"print-event", FLAG_NONE, 0, 1, cmd_printdebug},
{"printdebug", FLAG_NONE, 0, 1... | hynnet/hotplug2 | rules/command.c | C | gpl-2.0 | 9,825 |
#include <openssl/err.h>
#ifdef _WIN32
#define PyErr_SetFromErrGeneric(x) PyErr_SetExcFromWindowsErr(x, 0)
#else
#define PyErr_SetFromErrGeneric(x) PyErr_SetFromErrno(x)
#endif
#include "nassl_errors.h"
PyObject *nassl_OpenSSLError_Exception;
static PyObject *nassl_SslError_Exception;
static PyObject *nassl_WantRe... | ZenSecurity/nassl | src/_nassl/nassl_errors.c | C | gpl-2.0 | 3,597 |
/*
* linux/arch/arm/common/amba.c
*
* Copyright (C) 2003 Deep Blue Solutions Ltd, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/mo... | losfair/android_kernel_sony_u8500_3_4 | drivers/amba/bus.c | C | gpl-2.0 | 16,932 |
#include "cheese-config.h"
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <gst/gst.h>
#include "cheese-avatar-chooser.h"
static void
response_cb (GtkDialog *dialog,
int response,
CheeseAvatarChooser *chooser)
{
if (response == GTK_RESPONSE_ACCEPT)
{
... | genesi/cheese | tests/cheese-test-chooser.c | C | gpl-2.0 | 1,016 |
/*
* (C) Copyright Linus Torvalds 1999
* (C) Copyright Johannes Erdfelt 1999-2001
* (C) Copyright Andreas Gal 1999
* (C) Copyright Gregory P. Smith 1999
* (C) Copyright Deti Fliegl 1999
* (C) Copyright Randy Dunlap 2000
* (C) Copyright David Brownell 2000-2002
*
* This program is free software; you can redistr... | moonman/linux-fslc-sr | drivers/usb/core/hcd.c | C | gpl-2.0 | 85,622 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.