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 |
|---|---|---|---|---|---|
/*
* linux/drivers/input/irremote/remote_kbd.c
*
* Keypad Driver
*
* Copyright (C) 2009 Amlogic Corporation
*
*
* 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 ... | dancefire/hd806-kernel-android | drivers/amlogic/input/irremote/remote_kbd.c | C | gpl-2.0 | 27,695 |
/*
* 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 version.
*
* This software is distributed in the hope that it will ... | xenobyte/xournal | src/xo-callbacks.c | C | gpl-2.0 | 119,239 |
/** @file
Wireless M-Bus (EN 13757-4).
Copyright (C) 2018 Tommy Vestermark
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... | rct/rtl_433 | src/devices/m_bus.c | C | gpl-2.0 | 49,187 |
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
* GObject introspection: Typelib hashing
*
* Copyright (C) 2010 Red Hat, Inc.
*
* 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 ... | jackjansen/gobject-introspection | girepository/gthash.c | C | gpl-2.0 | 6,368 |
/*
* Core MDSS framebuffer driver.
*
* Copyright (C) 2007 Google Incorporated
* Copyright (c) 2008-2015, The Linux Foundation. All rights reserved.
*
* 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, dist... | CyanogenMod/android_kernel_huawei_angler | drivers/video/msm/mdss/mdss_fb.c | C | gpl-2.0 | 107,455 |
/* ***** BEGIN LICENSE BLOCK *****
* Source last modified: $Id: dequant.c,v 1.1 2005/02/26 01:47:34 jrecker Exp $
*
* Portions Copyright (c) 1995-2005 RealNetworks, Inc. All Rights Reserved.
*
* The contents of this file, and the files included with this file,
* are subject to the current version ... | muromec/qtopia-ezx | src/3rdparty/libraries/helix/src/datatype/aac/codec/fixpt/decoder/ipp/dequant.c | C | gpl-2.0 | 4,439 |
/*
* linux/drivers/mmc/core/core.c
*
* Copyright (C) 2003-2004 Russell King, All Rights Reserved.
* SD support Copyright (C) 2004 Ian Molton, All Rights Reserved.
* Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved.
* MMCv4 support Copyright (C) 2006 Philip Langdale, All Rights Reserved.
*
* This ... | davidmueller13/AK-Flo | drivers/mmc/core/core.c | C | gpl-2.0 | 89,654 |
/*
* linux/drivers/cpufreq/cpufreq.c
*
* Copyright (C) 2001 Russell King
* (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>
*
* Oct 2005 - Ashok Raj <ashok.raj@intel.com>
* Added handling for CPU hotplug
* Feb 2006 - Jacob Shin <jacob.shin@amd.com>
* Fix handling for CPU hotplug -- affected CP... | KlinkOnE/caf-port | drivers/cpufreq/cpufreq.c | C | gpl-2.0 | 52,040 |
/*
* linux/drivers/s390/crypto/ap_bus.c
*
* Copyright (C) 2006 IBM Corporation
* Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
* Martin Schwidefsky <schwidefsky@de.ibm.com>
* Ralph Wuerthner <rwuerthn@de.ibm.com>
* Felix Beck <felix.beck@de.ibm.com>
*
* Adjunct processor bus.
*
* This... | Core2idiot/Kernel-Samsung-3.0...- | drivers/s390/crypto/ap_bus.c | C | gpl-2.0 | 48,662 |
/*
* comedi/drivers/me_daq.c
* Hardware driver for Meilhaus data acquisition cards:
* ME-2000i, ME-2600i, ME-3000vm1
*
* Copyright (C) 2002 Michael Hillmann <hillmann@syscongroup.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License... | mason-hock/CHIP-linux-libre | CHIP-linux-libre/drivers/staging/comedi/drivers/me_daq.c | C | gpl-2.0 | 15,493 |
// this code is based on a52dec/libao/audio_out_oss.c
static inline int16_t convert (int32_t i)
{
if (i > 0x43c07fff)
return 32767;
else if (i < 0x43bf8000)
return -32768;
else
return i - 0x43c00000;
}
static int a52_resample_MONO_to_5_C(float * _f, int16_t * s16){
int i;
int32_t ... | OpenSageTV/mplayer-sage9orig | liba52/resample_c.c | C | gpl-2.0 | 4,795 |
/*=============================================================================
//
// This software has been released under the terms of the GNU General Public
// license. See http://www.gnu.org/copyleft/gpl.html for details.
//
// Copyright 2002 Anders Johansson ajh@atri.curtin.edu.au
//
//=================... | OpenSageTV/mplayer-sage9orig | libaf/af_resample.c | C | gpl-2.0 | 11,031 |
/*
* fs/cifs/smb2pdu.c
*
* Copyright (C) International Business Machines Corp., 2009, 2012
* Etersoft, 2012
* Author(s): Steve French (sfrench@us.ibm.com)
* Pavel Shilovsky (pshilovsky@samba.org) 2012
*
* Contains the routines for constructing the SMB2 PDUs themselves
*
*... | u9621071/kernel-uek-UEK3 | fs/cifs/smb2pdu.c | C | gpl-2.0 | 60,992 |
/* -*- mode: C; c-basic-offset: 3; -*- */
/*---------------------------------------------------------------*/
/*--- begin ir_opt.c ---*/
/*---------------------------------------------------------------*/
/*
This file is part of Valgrind, a dynamic binary instrumentation
... | trast/valgrind-VEX | priv/ir_opt.c | C | gpl-2.0 | 199,567 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2008 Novell, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* ... | johnnyjacob/evolution | composer/e-composer-actions.c | C | gpl-2.0 | 16,299 |
/* packet-ros_asn1.c
* Routines for ROS packet dissection
* Graeme Lunt 2005
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Genera... | dnstap/wireshark | asn1/ros/packet-ros-template.c | C | gpl-2.0 | 15,225 |
<<<<<<< HEAD
#include <linux/ceph/ceph_debug.h>
#include <linux/module.h>
#include <linux/fs.h>
=======
#include "ceph_debug.h"
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/smp_lock.h>
>>>>>>> 296c66da8a02d52243f45b80521febece5ed498a
#include <linux/slab.h>
#include <linux/string.h>
#include <linux... | Core2idiot/Kernel-Samsung-3.0...- | fs/ceph/inode.c | C | gpl-2.0 | 57,428 |
#include "tintin.h"
#include "protos/action.h"
#include "protos/glob.h"
#include "protos/globals.h"
#include "protos/eval.h"
#include "protos/math.h"
#include "protos/print.h"
#include "protos/parse.h"
#include "protos/utils.h"
#include "protos/string.h"
#include "protos/vars.h"
extern struct session *if_command(cons... | kilobyte/kbtin | routes.c | C | gpl-2.0 | 14,705 |
/*
* Touchscreen driver for Marvell 88PM860x
*
* Copyright (C) 2009 Marvell International Ltd.
* Haojian Zhuang <haojian.zhuang@marvell.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
* published by the Fr... | Jackeagle/android_kernel_sony_c2305 | drivers/input/touchscreen/88pm860x-ts.c | C | gpl-2.0 | 6,238 |
#include "component_editor_cursor.h"
#include "../debug.h"
void* alloc_component_editor_cursor(char* buffer, int buffer_size) {
if (!buffer) {
debug_critical("[alloc_component_editor_cursor] buffer cannot be NULL");
return NULL;
}
if (buffer_size != sizeof(component_editor_cursor)) {
debug_critical("[alloc_... | metredigm/hunter | source/components/component_editor_cursor.c | C | gpl-2.0 | 1,911 |
#define _GNU_SOURCE /* asprintf */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <getopt.h>
#include <iconv.h>
#include <errno.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_SYNT... | sTeeLM/MINIME | toolkit/srpm/SOURCES/gfxboot-4.5.6/gfxboot-font.c | C | gpl-2.0 | 35,579 |
/*
* Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net>
*
* 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 version.
*
... | shakamunyi/pacemaker | cib/main.c | C | gpl-2.0 | 16,533 |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* (C) 2010 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
/*
* Test of reduce scatter with large data (needed in MPICH to trigger the
* long-data algorithm)
*
* Each processor contributes its rank + the index t... | qingu/WRF-Libraries | src/mpich-3.0.1/test/mpi/coll/redscatblk3.c | C | gpl-2.0 | 2,363 |
/*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | ohpauleez/soymacchiato | src/hotspot/agent/src/os/bsd/symtab.c | C | gpl-2.0 | 7,084 |
/*
* pluma-search-commands.c
* This file is part of pluma
*
* Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
* Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi
* Copyright (C) 2002-2006 Paolo Maggi
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU... | monsta/pluma | pluma/pluma-commands-search.c | C | gpl-2.0 | 20,608 |
/*
* globbing_test.c: test program for file-finding functions
*
* Copyright (C) 1995 Graeme W. Wilford. (Wilf.)
* Copyright (C) 2001, 2002, 2003, 2006, 2007, 2008 Colin Watson.
*
* This file is part of man-db.
*
* man-db is free software; you can redistribute it and/or modify it
* under the terms of the GNU ... | infoburp/man-db | src/globbing_test.c | C | gpl-2.0 | 3,387 |
/*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2011 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
#include "qla_def.h"
#include <linux/delay.h>
#include <linux/pci.h>
#define MASK(n) ((1ULL<<(n))-1)
#define MN_WIN(addr) (((addr & 0x1fc0000) >> 1) | ((addr >> 25) ... | spacex/kernel-centos5 | drivers/scsi/qla2xxx/qla_nx.c | C | gpl-2.0 | 78,758 |
/* vf.c -- VF font support */
/*
* Copyright (C) 2000, Matias Atria
*
* 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 versi... | GNOME/evince | backend/dvi/mdvi-lib/vf.c | C | gpl-2.0 | 6,053 |
/*******************************************************************************
Vendor: Xilinx
Associated Filename: test-cl.c
Purpose: OpenCL Host Code for Matrix Multiply Example
Revision History: July 1, 2013 - initial release
****************************************... | peterpengwei/bwa-spark-fpga | alphadata/test-cl.c | C | gpl-2.0 | 12,198 |
/*
* apilist.c
*/
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "mrdb.h"
#include "mrdberror.h"
#include "apilist.h"
#include <mruby/compile.h>
#include <mruby/irep.h>
#include <mruby/debug.h>
#define LINE_BUF_SIZE MAX_COMMAND_LINE
typedef struct source_file {
char *path;
uint16_t lineno... | ErikMinekus/sm-ripext | nghttp2/third-party/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c | C | gpl-3.0 | 4,575 |
/*
LUFA Library
Copyright (C) Dean Camera, 2010.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentati... | 2015zsl143066/zslpcr | usb/LUFA101122/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c | C | gpl-3.0 | 13,667 |
#include <stdio.h>
int main()
{
printf("Hello World, this is a Travis build test\n");
return 0;
}
| ITOUK/The-Ni-Programming-Language | tests/main.c | C | gpl-3.0 | 102 |
/* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
Copyright 2007-2012 Thomas Schmitt, <scdbackup@gmx.net>
Provided under GPL version 2 or later.
This file contains the implementation of options -a* to -c* as mentioned
in man page or info file derived from xorriso.texi.
*/
#... | Distrotech/xorriso | xorriso/opts_a_c.c | C | gpl-3.0 | 79,546 |
/*
* Copyright © 2012 Intel Corporation
*
* 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, including without limitation
* the rights to use, copy, modify, merge, pub... | ArcticaProject/vcxsrv | mesalib/src/mesa/main/performance_monitor.c | C | gpl-3.0 | 37,408 |
/*
**
** File: fmopl.c - software implementation of FM sound generator
** types OPL and OPL2
**
** license:GPL-2.0+
**
** Copyright Jarek Burczynski (bujar at mame dot net)
** Copyright Tatsuyuki Satoh , MultiArcadeMachineEmulator development
**
** Version 0.72
**
** Adapted ... | Rakashazi/emu-ex-plus-alpha | C64.emu/src/vice/core/fmopl.c | C | gpl-3.0 | 58,256 |
#include <human.h>
#include <stdlib.h>
#include <time.h>
#include <limits.h>
#include <math.h>
uint32_t mouseSpeed = 20;
void randomize(void)
{
time_t now = time(NULL);
uint8_t *p = (uint8_t *)&now;
uint32_t seed = 0;
size_t i;
for (i = 0; i < sizeof(now); i++)
seed = seed * (UCHAR_MAX + 2U) + p[i];
srand(s... | slushpuppy/CMML | src/human.c | C | gpl-3.0 | 2,734 |
/*
This file is part of GNUnet.
(C) 2011 Christian Grothoff (and other contributing authors)
GNUnet 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 3, or (at your
opti... | schanzen/gnunet-mirror | src/ats/gnunet-service-ats_reservations.c | C | gpl-3.0 | 4,859 |
/*
* Copyright (C) 2007-2012 Robert Gerlach
*
* You can redistribute and/or modify this program under the terms of the
* GNU General Public License version 3 as published by the Free Software
* Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without ev... | yolanother/fjbtndrv | src/gui-xosd.c | C | gpl-3.0 | 2,332 |
/* Mensa-CLI - a command line interface for libmensa
* Copyright (C) 2011, Holger Langenau
*
* This file is part of Mensa-CLI.
*
* Mensa-CLI 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 ... | lahol/mensa-cli | src/cmd_info.c | C | gpl-3.0 | 2,837 |
/*
* This file is part of wdcd
* Copyright (C) 2013 Rafal Wokacz (rafal.wokacz@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 3 of the License, or
* (at your optio... | rawo/wdcd | src/main.c | C | gpl-3.0 | 4,523 |
/*
========================================================================
D O O M R e t r o
The classic, refined DOOM source port. For Windows PC.
========================================================================
Copyright © 1993-2022 by id Software LLC, a ZeniMax Medi... | bradharding/doomretro | src/p_mobj.c | C | gpl-3.0 | 51,433 |
/*
* (C) Copyright 2000
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* Add to readline cmdline-editing by
* (C) Copyright 2005
* JinHua Luo, GuangDong Linux Center, <luo.jinhua@gd-linux.com>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free softw... | daydaygit/flrelse | uboot1.1.6/common/main.c | C | gpl-3.0 | 36,674 |
//
// Created by simon on 17-9-9.
//
#include "queue.h"
queue_t *queue_init() {
queue_t *queue = (queue_t *) malloc(sizeof(queue_t));
queue->head = queue->tail = NULL;
return queue;
}
void queue_enqueue(queue_t *queue, int data) {
if (queue != NULL) {
list_node_t *new = (list_node_t *) malloc... | SimonSayID/D-A | queue/queue.c | C | gpl-3.0 | 1,208 |
/*
* MicroEMACS 3.8
* written by Dave G. Conroy.
* greatly modified by Daniel M. Lawrence
*
* (C)opyright 1987 by Daniel M. Lawrence
* MicroEMACS 3.8 can be copied and distributed freely for any
* non-commercial purposes. MicroEMACS 3.8 can only be incorporated
* into commercial software with the permissio... | axelmuhr/Helios-NG | cmds/emacs/main.c | C | gpl-3.0 | 46,927 |
#include <stdio.h>
int power(int m, int n);
/* test power function version 2 */
int main(){
int i;
for (i = 0; i < 10; i++)
printf("%d %d %d\n", i, power(2,i), power(-3,i));
return 0;
}
/* power: raise base to the n-th power; n>= 0 */
int power(int base, int n){
int p;
for (p = 1; n > 0; --n)
p = p * bas... | sjud/c_programming_language | chapter_1/function_power_example_2.c | C | gpl-3.0 | 335 |
/* Empty implementation file for frontend tests. */
| MIND-Tools/mind-compiler | adl-frontend/src/test/resources/unit/unsupported/error/semantic/attributes/my.c | C | gpl-3.0 | 52 |
/*
* auxtrace.c: AUX area tracing support
* Copyright (c) 2013-2014, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is d... | williamfdevine/PrettyLinux | tools/perf/arch/x86/util/auxtrace.c | C | gpl-3.0 | 2,016 |
/* Copyright (c) 2013 Michele Bini
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the version 3 of the GNU General Public License
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT A... | rev22/malloctrap | malloctrap.c | C | gpl-3.0 | 3,567 |
#include <stdio.h>
#include <stdlib.h>
void main()
{
float *ptr = malloc( sizeof(*ptr) );
int i;
for(i=0;i<5;i++)
{
scanf("%f",(ptr+i));
printf("%f",*(ptr+i));
}
}
| abcxyz09/MyCodeLibrary | SHAHINVAICODE/Test.c | C | gpl-3.0 | 186 |
/* main.c */
#include <stdio.h>
#include "world.h"
int main(void)
{
printf("%s", get_hello());
printf("%s", get_goodbye());
return 0;
}
| d3ads1lence/traineeship | task1/hello.c | C | gpl-3.0 | 152 |
/*************************************************************************
> File Name: b1.c
> Author:
> Mail:
> Created Time: Sun 13 Aug 2017 03:12:12 PM CST
************************************************************************/
void a();
void b1()
{
a();
}
| NEWPLAN/books | programming/chap7/6_link_achieve/b1.c | C | gpl-3.0 | 275 |
/*! \file
Copyright (c) 2003, The Regents of the University of California, through
Lawrence Berkeley National Laboratory (subject to receipt of any required
approvals from U.S. Dept. of Energy)
All rights reserved.
The source code is distributed under BSD license, see the file License.txt
at the top-level director... | TLCFEM/suanPan | Toolbox/superlu-src/cgstrf.c | C | gpl-3.0 | 16,699 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main (int argc, char* argv[])
{
int err = 0;
char f1[256], f2[256], f3[256];
int lf1, lf2, lf3;
if (argc < 3) {
printf ("%s: expected <meshfile> <mshffile> <casedir>\n", argv[0]);
err = 1; goto quit;
}
strcpy (f1, argv[1]);
lf1 = st... | DominicJones/gpde | src/main.c | C | gpl-3.0 | 557 |
#include <types.h>
#include <mem.h>
#include <syscall.h>
#include "syscall_int.h"
void* global_base = NULL;
//static unsigned long brk(void*);
static void* sbrk(size_t);
/*static unsigned long brk(void* end) {
return -(syscall(SYS_brk, end) != (unsigned long long) end);
}*/
static void* sbrk(size_t len) {
un... | mtottenh/picolibc | src/mem.c | C | gpl-3.0 | 2,468 |
/**
* \file msg_powers.c
* \author François Grondin <francois.grondin2@usherbrooke.ca>
* \version 2.0
* \date 2018-03-18
* \copyright
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publishe... | introlab/odas | src/message/msg_powers.c | C | gpl-3.0 | 2,807 |
/*
* See Licensing and Copyright notice in naev.h
*/
/**
* @file nlua_shiplog.c
*
* @brief Handles the shiplog Lua bindings.
*/
/** @cond */
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "naev.h"
/** @endcond */
#include "nlua_shiplog.h"
#include "array.h"
#include "gui_osd.h"
#include "... | onpon4/naev | src/nlua_shiplog.c | C | gpl-3.0 | 3,448 |
/*************************************************************
* File: lib/nvram.c
* Purpose: Part of C runtime library
* Author: Phil Bunce (pjb@carmel.com)
* Revision History:
* 970304 Start of revision history
* 970311 Added flush_cache(DCACHE) for 4010 copy-back
* 970605 Added writeFlash
* 970620 Cygnus req... | tupelo-shen/my_test | doc/linux/mips-architecture/loongson-datasheet/pmon/src/pmon-loongson3/doc/cat/nvram.c | C | gpl-3.0 | 13,451 |
/**************************************************************************/
/* */
/* CELIA Tools / UCONS Abstract Domain */
/* */
/* you can ... | mihasighi/celia-tools | src/arad/ucons/ucons_representation.c | C | gpl-3.0 | 28,380 |
/*
* Copyright(C) 2016-2017 Davidson Francis <davidsondfgl@gmail.com>
*
* This file is part of Nanvix.
*
* Nanvix 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 3 of the License, or
*... | Theldus/nanvix | src/lib/libc/stdlib/mrand48.c | C | gpl-3.0 | 1,815 |
/**
******************************************************************************
* @file FatFs/FatFs_uSD_RTOS/Src/stm32f4xx_it.c
* @author MCD Application Team
* @version V1.0.0
* @date 17-February-2017
* @brief Main Interrupt Service Routines.
* This file provides template for ... | TRothfelder/Multicopter | libs/STM32Cube_FW_F4_V1.16.0/Projects/STM32F413H-Discovery/Applications/FatFs/FatFs_uSD_RTOS/Src/stm32f4xx_it.c | C | gpl-3.0 | 5,059 |
/* Name: main.c
* Author: Kiral Poon
* Copyright: All copyright belongs to author
* License: normal public license
* Freq_ref: http://www.phy.mtu.edu/~suits/notefreqs.html
*/
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <lcd_functions.h>
#include <lcd_driver.h>
#include <stdio... | kiralpoon/Real-Time-System | AVR-Butterfly/SAOSound/main.c | C | gpl-3.0 | 3,916 |
/*
=======================================================================================================================================
Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company.
This file is part of Spearmint Source Code.
Spearmint Source Code is free software; you can redistribute it and/o... | KuehnhammerTobias/ioqw | code/game/ai_dmq3.c | C | gpl-3.0 | 182,176 |
/*
* Wolfenstein: Enemy Territory GPL Source Code
* Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company.
*
* ET: Legacy
* Copyright (C) 2012-2016 ET:Legacy team <mail@etlegacy.com>
*
* This file is part of ET: Legacy - http://www.etlegacy.com
*
* ET: Legacy is free software: you can redistribute i... | yfcz/etlegacy | src/server/sv_snapshot.c | C | gpl-3.0 | 27,223 |
#include <stdio.h>
void thePrintf(int array[], int size)
{
int i;
for (i = 0;i < size;i++)
{
printf ("%d ", array[i]);
}
printf ("\r\n\r\n");
}
void maxHeapFilterDown (int array[], int index, int size)
{
int dad, son, temp;
dad = index;
temp = array[dad]... | kakaiu/codeTracker | ast/example/heapSort.c | C | gpl-3.0 | 1,928 |
/* cyberfeeder - An Android: Netrunner deckbuilder
* Copyright (C) 2013 Jack Kelly <jack@jackkelly.name>
*
* 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 3 of the License, ... | endgame/cyberfeeder | src/card_db.c | C | gpl-3.0 | 1,645 |
/* vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: */
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
* Copyright (C) 1999-2008 Michael Rasmussen and the Claws Mail Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU ... | TierraDelFuego/sylpheedish | src/plugins/archive/archiver.c | C | gpl-3.0 | 4,143 |
/*
* ProFTPD - FTP server daemon
* Copyright (c) 1997, 1998 Public Flood Software
* Copyright (c) 1999, 2000 MacGyver aka Habeeb J. Dihu <macgyver@tos.net>
* Copyright (c) 2001-2011 The ProFTPD Project team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... | xichy/proftpd_optimize_xferlog | proftpd-1.3.4a/src/log.c | C | gpl-3.0 | 19,384 |
/*
This file is part of GNUnet.
Copyright (C) 2008, 2009 GNUnet e.V.
GNUnet 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 3, or (at your
option) any later version.
GNUnet is distri... | tg-x/gnunet | src/util/container_heap.c | C | gpl-3.0 | 14,089 |
/*
* Queue.c
*
* Jason Graalum
* November 15, 2016
* New Beginnings - Theory II
*
* Generic support for standard data structures used in a variety of programs
*
* queue
*
* The same data element(queueNode) is used for all structures. The queueNode structure
* include a void ptr to another structure ... | new-beginings-2016/theoryii-code | queue/Queue.c | C | gpl-3.0 | 2,047 |
/*
* GPIO interface for Intel Sodaville SoCs.
*
* Copyright (c) 2010, 2011 Intel Corporation
*
* Author: Hans J. Koch <hjk@linutronix.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License 2 as published
* by the Free Software F... | williamfdevine/PrettyLinux | drivers/gpio/gpio-sodaville.c | C | gpl-3.0 | 6,274 |
/*
* Copyright (C) 2012, 2013, 2014 Karol Babioch <karol@babioch.de>
* Copyright (c) 2010 Frank Meyer - frank(at)fli4l.de
*
* This file is part of Wordclock.
*
* Wordclock 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 So... | Wordclock/firmware | src/timer.c | C | gpl-3.0 | 4,518 |
/*
OpenChange Server implementation
EMSMDBP: EMSMDB Provider implementation
Copyright (C) Julien Kerihuel 2009-2011
Copyright (C) Jesús García Sáez 2014
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 F... | javierag/openchange | mapiproxy/libmapiproxy/openchangedb.c | C | gpl-3.0 | 42,198 |
// (c)2010 by Texas Instruments Incorporated, All Rights Reserved.
/*-----------------------------------------------------------------------------+
| |
| Texas Instruments |
| ... | IgorIvanGaudeda/MIYAGI | Code/Base/ez430_chronos_access_point/USB_config/UsbIsr.c | C | gpl-3.0 | 10,924 |
/**
* RND64
* rnd64.c
*
* Generate large files (4GB+, non-sparse) and large streams (200GB+) of random data as quickly as possible.
*
* @author Martin Latter <copysense.co.uk>
* @copyright Martin Latter, April 2014
* @version 0.41 mt
* @license GNU GPL version 3.0 (GPL v3); https://www.... | Tinram/RND64 | src/rnd64.c | C | gpl-3.0 | 15,863 |
/*
* NTLMSSP Acceptor
* DCERPC Server functions
* Copyright (C) Simo Sorce 2010.
*
* 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 3 of the License, or
* (at your o... | lauria/Samba4 | source3/rpc_server/dcesrv_ntlmssp.c | C | gpl-3.0 | 3,783 |
/*//////////////////////////////////////////////////////////////////////////////
// <file type="public">
// <license>
// This file was originally written by Bradley S. Meyer.
//
// This is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as publi... | shenyp09/nucnet-tools-code | vendor/libnucnet/0.28/examples/print_zone_screening.c | C | gpl-3.0 | 8,870 |
#include "gui.h"
#include "event.h"
#include "widget.h"
#include "scrollbar.h"
#include "adjust.h"
#define SCALE 16
#define SCALE_SHIFT (1 << SCALE)
static eint scrollbar_init_data(eHandle, ePointer);
static void scrollbar_init_orders(eGeneType, ePointer);
static eint scrollbar_mousemove(eHandle, GalEventM... | bierdaci/egui | egui/scrollbar.c | C | gpl-3.0 | 6,370 |
#include<stdio.h>
int main()
{
int i,n;
printf("Please input a number:");
scanf("%d",&n);
for(i = 0; i < n; i++)
{
printf("%d + %d = %d\t",i,(n-i),n);
if(i % 2 != 0)
printf("\n");
}
}
| wch16534421/- | 打印加法口诀.c | C | gpl-3.0 | 201 |
/*
* PARTIME parse date/time string into a TM structure
*
* Returns:
* 0 if parsing failed
* else time values in specified TM structure and zone (unspecified values
* set to TMNULL)
* Notes:
* This code is quasi-public; it may be used freely in like software.
* It is not to be sold, nor used in licensed soft... | axelmuhr/Helios-NG | cmds/public/rcs5.5/partime.c | C | gpl-3.0 | 19,600 |
/*
** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
** Copyright (C) [dates of first publication] Silicon Graphics, Inc.
** All Rights Reserved.
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documentation files (the "Software"), to dea... | andreynovikov/maptrek | app/src/main/jni/libtess2/Source/sweep.c | C | gpl-3.0 | 46,405 |
/*
* Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
* From ASN.1 module "ACSE-1"
* found in "../../../dumpvdl2.asn1/atn-b1_ulcs.asn1"
* `asn1c -fcompound-names -fincludes-quoted -gen-PER`
*/
#include "ABRT-source.h"
int
ABRT_source_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constr... | szpajder/dumpvdl2 | src/asn1/ABRT-source.c | C | gpl-3.0 | 4,883 |
/**
* @file eventlog-test.c
*
* @copyright 2015-2017 Bill Zissimopoulos
*/
/*
* This file is part of WinFsp.
*
* You can redistribute it and/or modify it under the terms of the GNU
* General Public License version 3 as published by the Free Software
* Foundation.
*
* Licensees holding a valid commercial lice... | yogendersolanki91/winfsp | tst/winfsp-tests/eventlog-test.c | C | gpl-3.0 | 875 |
/*
*
* Copyright (c) 2008 by Christian Dietrich <stettberger@dokucode.de>
* Copyright (c) 2008 by Stefan Siegl <stesie@brokenpipe.de>
*
* 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; eit... | stettberger/IR77 | protocols/usb/usb.c | C | gpl-3.0 | 4,083 |
/*
* The routines in this file
* deal with the region, that magic space
* between "." and mark. Some functions are
* commands. Some functions are just for
* internal use.
*
* $Header: /hsrc/cmds/emacs/RCS/region.c,v 1.1 1990/08/23 15:16:09 jon Exp $
*
*/
#include <stdio.h>
#include "estruct.h"
#include ... | axelmuhr/Helios-NG | cmds/emacs/region.c | C | gpl-3.0 | 7,213 |
#include "malgtk_cellrenderer_score.h"
struct _MalgtkCellRendererScorePrivate
{
gint score;
GtkListStore *liststore;
};
typedef struct _MalgtkCellRendererScorePrivate MalgtkCellRendererScorePrivate;
G_DEFINE_TYPE_WITH_PRIVATE (MalgtkCellRendererScore, malgtk_cell_renderer_score, GTK_TYPE_CELL_RENDER... | talisein/mal-gtk | src/gui/malgtk_cellrenderer_score.c | C | gpl-3.0 | 7,179 |
/*
gquad.c
Ronny Lorenz 2012
Vienna RNA package
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <config.h>
#include "fold_vars.h"
#include "data_structures.h"
#include "energy_const.h"
#include "utils.h"
#include "aln_util.h"
#include "gquad.h"
#ifndef INLINE
#ifdef _... | mhuttner/miRA | src/Lfold/gquad.c | C | gpl-3.0 | 23,734 |
/*
* SMPTE 302M decoder
* Copyright (c) 2008 Laurent Aimar <fenrir@videolan.org>
* Copyright (c) 2009 Baptiste Coudurier <baptiste.coudurier@gmail.com>
*
* 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
* Lic... | luke147/tvclipper | ffmpeg-2.7.2/libavcodec/s302m.c | C | gpl-3.0 | 8,057 |
#include "../apue.h"
#include <strings.h>
#include <errno.h>
//#define USE_EXCL
//#define USE_TYPE 1
//#define USE_NOWAIT
#define USE_E2BIG
//#define USE_NOERR
#define READ_REMOVEQ
#define WRITE_REMOVEQ
//#define DUMP_QUEUE
#define MAX_QUEUE_SIZE 10
#define MAX_DATA_SIZE 512
#include <sys/msg.h>
struct msgbuf { ... | goodpaperman/apue | 15.chapter/xsique.c | C | gpl-3.0 | 7,260 |
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* 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 re... | Smoothieware/Smoothieware | mbed/src/capi/exit.c | C | gpl-3.0 | 880 |
/*
* Copyright(C) 2011-2015 Pedro H. Penna <pedrohenriquepenna@gmail.com>
*
* This file is part of Nanvix.
*
* Nanvix 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 3 of the License, ... | tabocu/nanvix | src/lib/libc/ctype/isalpha.c | C | gpl-3.0 | 2,931 |
/*
* Written by Solar Designer <solar at openwall.com> in 2000-2011.
* No copyright is claimed, and the software is hereby placed in the public
* domain. In case this attempt to disclaim copyright and place the software
* in the public domain is deemed null and void, then the software is
* Copyright (c) 2000-2011... | BeGe78/esood | vendor/bundle/ruby/3.0.0/gems/bcrypt-3.1.16/ext/mri/crypt_gensalt.c | C | gpl-3.0 | 3,985 |
/*
* sound.c
*
* Created on: 2011. 2. 17.
* Author: Administrator
*/
#include "sound.h"
#include "stm32f10x_lib.h"
#include "stm32f10x_type.h"
#include "common_type.h"
#include "system_init.h"
const u16 DoremiTable[SIZE_DOREMITABLE] =
{9091, 8584, 8099, 7645, 7220, 6811, 6428, 6067, 5727, 5406,
5102, 4... | Bidski/TAJ3850 | CM730_FIRMWARE/CM730_HW/src/sound.c | C | gpl-3.0 | 11,421 |
#include <include/generated/autoconf.h>
#ifdef CONFIG_MCUAL_CAN
#include "../arm/can.c"
#endif
| cocobot/eurobot-base | ausbee-packages/mcual/src/halibaba/can.c | C | gpl-3.0 | 97 |
/**
* || ____ _ __
* +------+ / __ )(_) /_______________ _____ ___
* | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
* +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
* || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
*
* Crazyflie control firmware
*
* Copyright (C) 201... | gabripo/crazygas | src/drivers/src/adc_f103.c | C | gpl-3.0 | 8,747 |
/*
* Copyright (c) 2009 - 2011 Miek Gieben
* License: GPLv3(+), see LICENSE for details
* parse_entry.c
* parse an standard rdup entry and return a
* struct rdup
*/
#include "rdup-tr.h"
#include "protocol.h"
#include "io.h"
/* signal.c */
void got_sig(int);
void signal_abort(int);
extern int sig;
extern gint o... | miekg/rdup | entry.c | C | gpl-3.0 | 10,419 |
/**
* This file is part of RagEmu.
* http://ragemu.org - https://github.com/RagEmu/PreRenewal
*
* Copyright (C) 2016 RagEmu Dev Team
* Copyright (C) 2012-2015 Hercules Dev Team
* Copyright (C) Athena Dev Teams
*
* RagEmu is free software: you can redistribute it and/or modify
* it under the terms of the GNU... | RagEmu/PreRenewal | src/char/int_mercenary.c | C | gpl-3.0 | 8,716 |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | p01arst0rm/decorum-linux | _resources/kernels/xnu-arm/bsd/dev/dtrace/profile_prvd.c | C | gpl-3.0 | 21,470 |
#include "runtime/runtime.h"
#include <math.h>
Object* math_sin(Object* self, Object* num) {
return Float_new(sin(num->data.d));
}
Object* math_cos(Object* self, Object* num) {
return Float_new(cos(num->data.d));
}
Object* math_tan(Object* self, Object* num) {
return Float_new(tan(num->data.d));
}
Objec... | proty/proty | lib/math/math.c | C | gpl-3.0 | 1,600 |
/*
* symtab.c - Symbol table
*
* Copyright 2011-2012 by Werner Almesberger
*
* 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, version 3 of the License.
*/
#include <stdlib.h>
#include <... | m-labs/flickernoise | src/compiler/symtab.c | C | gpl-3.0 | 3,135 |
/*
* This file is part of Cleanflight.
*
* Cleanflight 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 3 of the License, or
* (at your option) any later version.
*
* Cleanflight is distr... | rb1205/inav | src/main/rx/sumh.c | C | gpl-3.0 | 3,817 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.