code
stringlengths
1.03k
250k
repo_name
stringlengths
7
70
path
stringlengths
4
177
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
1.03k
250k
// // analytical functions // #include "analyticalSolutions.h" /** \ingroup analyticalSolutions @{ */ /** \brief Couette Flow between two parallel plates. One moving relative to the other with constant seperation (width). @param iwork NOT USED @param rwork[0] velocity of moving plate in the x-dir, \f$ vx ...
erdc/proteus
proteus/analyticalSolutions.c
C
mit
57,408
/*---------------------------------------------------------------------------- File : fcmat3.c Contents: data type for functional connectivity matrix (half-stored) Author : Kristian Loewe, Christian Borgelt ----------------------------------------------------------------------------*/ #ifndef _WIN32 ...
kloewe/mod-fconn
src/fcmat3.c
C
mit
9,360
// Copyright (C) 2009-2013 Mischa Sandberg <mischasan@gmail.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 Free Software Foundation. You may not use, modify or // distribute this program under any ...
mischasan/util
rsort_x.c
C
mit
3,795
#include <unistd.h> #include <stdio.h> #include <string.h> #include <git2.h> #define gpCheck(error, action) \ if (error) { \ printf("git-prompt error: %d\n", error); \ action; \ } #define PATH_LENGTH 4096 #define TOKEN_LENGTH 6...
kbenzie/git-prompt
source/git-prompt.c
C
mit
14,847
#include "gui.h" #include "graphics.h" #include "heap.h" #include "kstdio.h" window_t g_window_list; void gui_init() { LIST_INIT(g_window_list.list); } void gui_background_render() { //fillrect(0,0,screen_width,screen_height,rgb(255,255,255)); } void gui_print() { } void gui_update() { window_t* win; LIST_FO...
zzh8829/OSPP
zos/src/gui.c
C
mit
1,283
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_file_w32_spawnvp_63a.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-63a.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: file Read input from a file * ...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s08/CWE78_OS_Command_Injection__wchar_t_file_w32_spawnvp_63a.c
C
mit
3,624
#include <stdio.h> #include <stdlib.h> #define MIN_ALLOC_SIZE 24 #define MAX_ALLOC_SIZE 1024 * 100 #define CHANCE_OF_FREE 95 #define CHANCE_OF_REALLOC 50 #define TOTAL_ALLOCS 400000 int main() { malloc(1); int i; void *realloc_ptr = NULL; void **dictionary = malloc(TOTAL_ALLOCS * sizeof(void *)); ...
buaabarty/syspro_hw
syspro_hw1/testers/tester-5.c
C
mit
2,295
/* * This file is part of the MicroPython project, http://micropython.org/ * * SHA2017 Badge Firmware https://wiki.sha2017.org/w/Projects:Badge/MicroPython * * The MIT License (MIT) * * Copyright (c) 2015 Paul Sokolovsky * Copyright (c) 2016 Damien P. George * Copyright (c) 2017 Anne Jan Brouwer * * Permissi...
SHA2017-badge/micropython-esp32
esp32/modbadge.c
C
mit
31,467
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_file_w32_spawnv_65b.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-65b.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: file Read input from a file * Good...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s04/CWE78_OS_Command_Injection__char_file_w32_spawnv_65b.c
C
mit
2,133
#ifndef F_CPU #define F_CPU 1000000UL #endif #define USART_BAUDRATE 4800 #define BAUD_PRESCALE (((F_CPU/(USART_BAUDRATE*16UL)))-1) #include <avr/io.h> #include <avr/interrupt.h> #include <ctype.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <util/delay.h> ...
EliHar/mr_robot
atm.c
C
mit
6,832
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2015 Rob Fowler * * 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 Softw...
mianos/micropython
esp8266/mod_esp_wifi_events.c
C
mit
6,341
/* ############################################################################ Name : shadings.c University : University of Edinburgh Project : Practical 1, Computer Graphics Student : Stavros Vagionitis(s0954319) Description : Implements 3D shadings Procedure De...
svagionitis/CGShading
shadings.c
C
mit
17,342
// This file is part of byfly-wifi-auth. For the copyright and license information, please view the LICENSE file that was distributed with this source code. #include <curl/curl.h> int main () { curl_global_init ( CURL_GLOBAL_DEFAULT ); CURL * curl = curl_easy_init (); if ( curl == NULL ) { curl_e...
andrew-aladev/byfly-wifi-auth
cmake/checks/libcurl/main.c
C
mit
1,127
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXIMUM_WORD_SIZE 64 #define MAXIMUM_LINE_SIZE 128 int main(int argc, char* argv[]) { if (argc != 3) { printf("cmt: No file names given\n"); exit(EXIT_FAILURE); } FILE *inputfile; if ((inputfile = fopen(argv[1], "...
nelly-hateva/fa
src/lib/clean.c
C
mit
1,248
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_console_w32_execvp_12.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-12.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: console Read input from the console...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s02/CWE78_OS_Command_Injection__char_console_w32_execvp_12.c
C
mit
4,586
#include <stdio.h> /* puts, printf */ #include <stdlib.h> /* free */ #include <string.h> /* strncmp */ #include "parse.h" struct ic_decl *ic_parse_decl_builtin(struct ic_token_list *token_list) { /* our resulting ic_decl */ struct ic_decl *decl = 0; /* current token we are looking at */ struct ic_tok...
mkfifo/icarus
src/parse/decl.c
C
mit
31,742
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_environment_w32_execvp_22a.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-22a.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: environment Read input fro...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s07/CWE78_OS_Command_Injection__wchar_t_environment_w32_execvp_22a.c
C
mit
5,220
/* $Id: edgelist.c,v 1.4 2011/01/25 16:30:48 ellson Exp $ $Revision: 1.4 $ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made ava...
tomgr/graphviz-cmake
lib/circogen/edgelist.c
C
epl-1.0
2,185
/* @(#)draw.c 1.1 */ #include <stdio.h> #include <math.h> #include <stdlib.h> #include "motion.h" #include "ext.h" #define PI 3.141592654 extern int size; extern int pstab[]; extern int DX; /* step size in x */ extern int DY; /* step size in y */ extern int drawdot; /* character to use when drawing */ exter...
n-t-roff/DWB3.3
laserjet/dpcl/draw.c
C
epl-1.0
8,551
/*++ /* NAME /* smtpd_check 3 /* SUMMARY /* SMTP client request filtering /* SYNOPSIS /* #include "smtpd.h" /* #include "smtpd_check.h" /* /* void smtpd_check_init() /* /* int smtpd_check_addr(address, smtputf8) /* const char *address; /* int smtputf8; /* /* char *smtpd_check_rewrite(state) /* SMTPD_STATE *state; /* /*...
terbolous/postfix
postfix/src/smtpd/smtpd_check.c
C
epl-1.0
191,917
/* * File : application.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://www.rt-thread.org/license/LICENSE * * Change Logs: * Date ...
aozima/rt-thread
bsp/gd32450z-eval/applications/application.c
C
gpl-2.0
1,818
/* * Copyright (c) 2001-2003,2005 Silicon Graphics, Inc. * 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 as * published by the Free Software Foundation. * * This program is distributed in the hope that it woul...
neerajrawat/fusexfs-3.1.4
src/xfsprogs/io/imap.c
C
gpl-2.0
1,868
/* * Freescale QUICC Engine USB Host Controller Driver * * Copyright (c) Freescale Semicondutor, Inc. 2006, 2011. * Shlomi Gridish <gridish@freescale.com> * Jerry Huang <Chang-Ming.Huang@freescale.com> * Copyright (c) Logic Product Development, Inc. 2007 * Peter Barada <...
jwhitham/ppc_linux
drivers/usb/host/fhci-sched.c
C
gpl-2.0
24,381
/* * Asterisk -- An open source telephony toolkit. * * Copyright (C) <Year>, <Your Name Here> * * <Your Name Here> <<Your Email Here>> * * See http://www.iaxproxy.org for more information about * the Asterisk project. Please do not directly contact * any of the maintainers of this project for assistance; * th...
primuslabs/iaxproxy
tests/test_skel.c
C
gpl-2.0
1,803
/* $Id: disco_provider_id.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $ * * Lasso - A free implementation of the Liberty Alliance specifications. * * Copyright (C) 2004-2007 Entr'ouvert * http://lasso.entrouvert.org * * Authors: See AUTHORS file in top-level directory. * * This program is free software; you can re...
adieu/lasso
lasso/xml/id-wsf-2.0/disco_provider_id.c
C
gpl-2.0
3,714
/* * File : application.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://www.rt-thread.org/license/LICENSE * * Change Logs: * Date ...
nathanlnw/NXCDMA_default
bsp/stm32f407vgt6_RecDrv/applications/application.c
C
gpl-2.0
5,670
/** * \file client/config_init.c * * \brief Command-line and config file processing for fwknop client. */ /* Fwknop is developed primarily by the people listed in the file 'AUTHORS'. * Copyright (C) 2009-2015 fwknop developers and contributors. For a full * list of contributors, see the file 'CREDITS'. ...
akerl/fwknop
client/config_init.c
C
gpl-2.0
100,442
/**************************************************************************/ /* */ /* Copyright (c) 2001, 2011 NoMachine, http://www.nomachine.com/. */ /* */ /* NXAGENT, ...
theqvd/qvd-nx-libs-3.5.0-32
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
C
gpl-2.0
46,706
/* <<<<<<< HEAD * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. ======= * Copyright (c) 2012, The Linux Foundation. All rights reserved. >>>>>>> 8f21ba79e30f047f727d3b9dd531267c1db2a838 * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * * * Permission to use, copy, mo...
antaril/AGK-CM-BASED
drivers/staging/prima_jb3.2/CORE/MAC/src/pe/lim/limStaHashApi.c
C
gpl-2.0
2,488
/* * This source code is part of * * G R O M A C S * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2009, The GROMACS Development Team * * Gromacs is a library for molecular simulation and trajectory analysis, * written by Er...
aar2163/GROMACS
src/gmxlib/nonbonded/nb_kernel_f77_double/nb_kernel223_f77_double.c
C
gpl-2.0
5,924
/* packet-sua.c * Routines for SS7 SCCP-User Adaptation Layer (SUA) dissection * It is hopefully (needs testing) compliant to * http://www.ietf.org/internet-drafts/draft-ietf-sigtran-sua-08.txt * http://www.ietf.org/rfc/rfc3868.txt * * Copyright 2002, 2003, 2004 Michael Tuexen <tuexen [AT] fh-muenster.de> * * $...
nixpanic/gluster-wireshark-1.4
epan/dissectors/packet-sua.c
C
gpl-2.0
122,441
/* * otg-wakelock.c * * Copyright (C) 2011 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. * * This program is distributed in the hope that i...
sloanyang/android_kernel_zte_u950
drivers/usb/otg/otg-wakelock.c
C
gpl-2.0
3,768
/* * pommed - Apple laptops hotkeys handler daemon * * Copyright (C) 2006-2008 Julien BLACHE <jb@jblache.org> * * 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 2 of the License. ...
bytbox/pommed-light
pommed/pommed.c
C
gpl-2.0
31,154
/* ¹¦ÄÜ : ÁгöÕ¾ÄÚʹÓÃÕß×ÊÁÏ ×¢ÒâÊÂÏî : ÐëҪĿǰµÄ bbs.h Compile : gcc -o showuser showuser.c ʹÓ÷½Ê½ : showuser i10 l5 e25 (ÁгöʹÓÃÕßµÄ ID, login ´ÎÊý, email µØÖ·) ²é¿´½á¹û £º ÔÚ ~bbs/tmp/showuser.result ÖÐ */ /* Modify by deardraogn 2000.10.28 */ #define FIRSTLOGIN...
fbbs/fdubbs
util/local_utl/showuser.c
C
gpl-2.0
4,874
/* Copyright (C) 2000-2002, 2004-2005 MySQL AB 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 2 of the License. This program is distributed in the hope that it will be useful, ...
pieter/mysql-server
myisam/mi_static.c
C
gpl-2.0
2,161
/****************************************************************************** * File : bodyForceAdapt_tria6.c * * Author : Carlos Rosales Fernandez (carlos@ihpc.a-star.edu.sg) * * Date : 01-09-2006 * ...
carlosrosales/thsolver
src/bodyForceAdapt_tria6.c
C
gpl-2.0
11,858
/* * Copyright (C) 2003-2011 The Music Player Daemon Project * http://www.musicpd.org * * 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 opti...
lintweaker/mpd-dsd
src/song_update.c
C
gpl-2.0
4,548
/* * linux/fs/ext4/page-io.c * * This contains the new page_io functions for ext4 * * Written by Theodore Ts'o, 2010. */ #include <linux/module.h> #include <linux/fs.h> #include <linux/time.h> #include <linux/jbd2.h> #include <linux/highuid.h> #include <linux/pagemap.h> #include <linux/quotaops.h> #include <linu...
elixirflash/dm-keepfast
fs/ext4/page-io.c
C
gpl-2.0
11,752
#include <pebble.h> #include "config.h" BitmapLayer * bluetooth_layer; GBitmap *bluetooth_images[4]; bool bt_connected = false; int _bt_loaded = 0; void bt_load(Layer * window_layer, GRect rect) { if (!_bt_loaded) { APP_LOG(APP_LOG_LEVEL_DEBUG, "bt_load"); for (int i = 0; i < 2; i++) b...
ShoobyBan/PebbleShoMaurice
src/plugin_bt.c
C
gpl-2.0
1,721
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include "elf.h" #include <string.h> FILE * source; void clean_up(){ fclose(source); } const char * types[] = { "NULL", "LOAD", "DYNAMIC", "INTERP","NOTE", "SHLIB","PHDR","TLS","LOOS","HIOS","LOPROC","HIPROC" }; char * permissions(uint flags) { char * r...
jpdarago/juampi-os
workbench/tasks/elf/elf_test.c
C
gpl-2.0
1,623
/************************************************************************** * * * Copyright (c) 2010 by Generalplus Inc. * * * * This sof...
go2ev-devteam/Gplus_2159_0801
openplatform/platform/common/driver/lcd/GPL32900/lcd_tpo_TD070WGCB2.c
C
gpl-2.0
14,265
/* Copyright (c) 2011-2013, The Linux Foundation. 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 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
cr1exe/android_kernel_sony_taoshan
arch/arm/mach-msm/board-8930-pmic.c
C
gpl-2.0
20,838
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <at89lp51rd2.h> #define LWP P3_2 #define LWN P3_3 #define RWP P3_4 #define RWN p3_5 #define CLK 22118400L #define BAUD 115200L #define BRG_VAL (0x100L-(CLK/(32L*BAUD))) #define FREQ 100L #define TIMER0_RELOAD_VALUE (65536L-(CLK/(12L*FREQ))) #define MO...
loriter/EECE281Project2
Main Code.c
C
gpl-2.0
12,575
/* mediastreamer2 library - modular sound and video processing and streaming Copyright (C) 2006 Simon MORLAT (simon.morlat@linphone.org) 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 versio...
xoox/mediastreamer2
src/alsa.c
C
gpl-2.0
29,282
/* * This file is part of wl1271 * * Copyright (C) 2009 Nokia Corporation * * Contact: Luciano Coelho <luciano.coelho@nokia.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 Free Software Foundati...
TripNRaVeR/tripndroid-endeavoru-3.1.10
drivers/net/wireless/wl12xx/debugfs.c
C
gpl-2.0
36,862
// // string allocation/managment #ifdef _CGAME #include "cgame/cg_local.h" #elif _UI #include "ui/ui_local.h" #endif #include "ui_shared.h" #include "game/bg_public.h" #include "game/anims.h" #include "ghoul2/G2.h" extern stringID_table_t animTable [MAX_ANIMATIONS+1]; extern void UI_UpdateCharacterSkin( void ); c...
BruceJohnJennerLawso/OtherJK
codemp/ui/ui_shared.c
C
gpl-2.0
226,847
#include "qemu-common.h" #include "qemu-option.h" #include "qemu-config.h" #include "sysemu.h" QemuOptsList qemu_drive_opts = { .name = "drive", .head = QTAILQ_HEAD_INITIALIZER(qemu_drive_opts.head), .desc = { { .name = "bus", .type = QEMU_OPT_NUMBER, .help = "bu...
aidanshribman/qemu-kvm
qemu-config.c
C
gpl-2.0
6,005
/* * linux/arch/arm/mach-clps711x/clep7312.c * * 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 program...
andi34/kernel_samsung_espresso-cm
arch/arm/mach-clps711x/clep7312.c
C
gpl-2.0
1,382
/* * Copyright (C) 2013 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 Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This librar...
TelekomCloud/libvirt
tests/virsystemdmock.c
C
gpl-2.0
5,591
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <pthread.h> #define NUM_THREADS 10 static pthread_once_t welcome_once_block = PTHREAD_ONCE_INIT; void welcome(void) { printf("welcome: Welcome\n"); } void *identify_yourself(void *arg) { int rtn; if ((rtn = pthread_o...
qtekfun/htcDesire820Kernel
external/valgrind/main/none/tests/pth_once.c
C
gpl-2.0
1,190
/* drivers/net/ethernet/freescale/dpa/dpaa_ptp.c * * DPAA Ethernet Driver -- PTP 1588 clock using the dTSEC * * Author: Yangbo Lu <yangbo.lu@freescale.com> * * Copyright 2014 Freescale Semiconductor, Inc. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU G...
jwhitham/ppc_linux
drivers/net/ethernet/freescale/dpa/dpaa_ptp.c
C
gpl-2.0
8,266
/***************************************************************************** * * 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 ...
Erikhht/TCPMP
common/libc/sincos.c
C
gpl-2.0
1,745
/* * Purple's oscar protocol plugin * This file is the legal property of its developers. * Please see the AUTHORS file distributed alongside this file. * * 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...
tdrhq/pidgin-clone
libpurple/protocols/oscar/family_icq.c
C
gpl-2.0
26,477
/* Postprocess module symbol versions * * Copyright 2003 Kai Germaschewski * Copyright 2002-2004 Rusty Russell, IBM Corporation * Copyright 2006-2008 Sam Ravnborg * Based in part on module-init-tools/depmod.c,file2alias * * This software may be used and distributed according to the terms * of the GNU Ge...
AdiPat/i9003_Kernel
scripts/mod/modpost.c
C
gpl-2.0
57,479
/* * linux/mm/page_alloc.c * * Manages the free list, the system allocates free pages here. * Note that kmalloc() lives in slab.c * * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds * Swap reorganised 29.12.95, Stephen Tweedie * Support of BIGMEM added by Gerhard Wichert, Siemens AG, July 1999 * Re...
arnavgosain/moto_msm8226
mm/page_alloc.c
C
gpl-2.0
175,079
/* * T50 - Experimental Mixed Packet Injector * * Copyright (C) 2010 - 2014 - T50 developers * * 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 * ...
0x0mar/t50
src/help/icmp_help.c
C
gpl-2.0
1,314
/* * main.c main loop of emulator. * * This file is part of the minicom communications package, * Copyright 1991-1995 Miquel van Smoorenburg. * * 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 F...
Passw/minicom
src/main.c
C
gpl-2.0
22,164
/* Copyright (C) 1997-2001 Id Software, Inc. 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 program is distribut...
vayerx/alienarena
source/client/cl_fx.c
C
gpl-2.0
85,573
/* Copyright (c) 2013-2014, The Linux Foundation. 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 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
Callie-Cacophony/CAF-test-kernel
sound/soc/codecs/msm8x10-wcd.c
C
gpl-2.0
111,397
/* * Given an integer k and a string s, * find the length of the longest substring that contains at most k distinct characters. * * For example, given s = "abcba" and k = 2, * the longest substring with k distinct characters is "bcb". */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <str...
susingha/0x_tools
programs/subarrLongestDistinct.c
C
gpl-2.0
1,846
/* * dell_rbu.c * Bios Update driver for Dell systems * Author: Dell Inc * Abhay Salunke <abhay_salunke@dell.com> * * Copyright (C) 2004 Dell Inc. * * Remote BIOS Update (rbu) driver is used for updating DELL BIOS by creating * entries in the /sys file systems on Linux 2.6 and higher kernels. * The driver...
dduval/kernel-rhel4
drivers/firmware/dell_rbu.c
C
gpl-2.0
26,200
/** * gholder.c -- data structure to hold raw data * Copyright (C) 2009-2014 by Gerardo Orellana <goaccess@prosoftcorp.com> * GoAccess - An Ncurses apache weblog analyzer & interactive viewer * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public Li...
wodev/goaccess
src/gholder.c
C
gpl-2.0
14,445
/* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */ /* Copyright (C) 2005 Carlos Garnacho * * This program 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 * License, or...
GNOME/liboobs
oobs/oobs-share-smb.c
C
gpl-2.0
8,313
/* Copyright 2001 Jeff Dike and others * Licensed under the GPL */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include <string.h> #include <net/if.h> #include <sys/un.h> #include <sys/ioctl.h> #include <sys/stat.h> #include <sys/uio.h> #include <linux/if_tun.h> #...
xl0/uml-utilities
uml_net/tuntap.c
C
gpl-2.0
3,985
/* SPDX-License-Identifier: GPL-2.0-only */ #include "pci_xhci.h" #include <acpi/acpigen.h> #include <acpi/acpigen_pci.h> #include <console/console.h> #include <device/pci.h> #include <device/pci_ids.h> #include <device/xhci.h> #include <stdlib.h> #define PCI_XHCI_CLASSCODE 0x0c0330 /* USB3.0 xHCI controller */ stat...
coreboot/coreboot
src/drivers/usb/pci_xhci/pci_xhci.c
C
gpl-2.0
6,792
/* LibTomCrypt, modular cryptographic library -- Tom St Denis * * LibTomCrypt is a library that provides various cryptographic * algorithms in a highly modular and flexible manner. * * The library is free for all purposes without any express * guarantee it works. */ #include "tomcrypt_private.h" /** @file oma...
mangosthree/server
dep/tomlib/Crypt/src/mac/omac/omac_done.c
C
gpl-2.0
2,142
/* Copyright (c) Mark J. Kilgard, 1994. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ /* Exercise all the GLUT shapes. */ #include <stdio.h> #include <stdlib.h> #ifdef _WIN...
aapodoll/ARToolKit
glut/glut-3.7/test/glut/test16.c
C
gpl-2.0
2,863
/* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved. * Copyright (c) 2012, LGE Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This ...
tkawajir/android_kernel_lg_l04e
arch/arm/mach-msm/lge/j1/board-j1-pmic.c
C
gpl-2.0
27,556
/* * Block driver for media (i.e., flash cards) * * Copyright 2002 Hewlett-Packard Company * Copyright 2005-2008 Pierre Ossman * * Use consistent with the GNU GPL is permitted, * provided that this copyright notice is * preserved in its entirety in all copies and derived works. * * HEWLETT-PACKARD COMPANY MAK...
forfivo/v500_kernel_aosp
drivers/mmc/card/block.c
C
gpl-2.0
68,670
/*************************************************************** * * (C) 2011-16 Nicola Bonelli <nicola@pfq.io> * * 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 Li...
pfq/PFQ
kernel/pfq/percpu.c
C
gpl-2.0
4,463
/****************************************************************************** errorhandler.c for Allmogetracker Allmogetracker receives data from a GPS receiver and transmits it over amature radio using the APRS protocol version 1.0. Copyright (C)2011, Andreas Kingbäck (andki234@gmail.com) This pro...
flighttronics/almtracker1
software/almtracker/helpmodules/errorhandler/errorhandler.c
C
gpl-2.0
4,245
/* * drivers/media/platform/samsung/mfc5/s5p_mfc_opr_v5.c * * Samsung MFC (Multi Function Codec - FIMV) driver * This file contains hw related functions. * * Kamil Debski, Copyright (c) 2011 Samsung Electronics * http://www.samsung.com/ * * This program is free software; you can redistribute it and/or modify ...
abhijeet-dev/linux-samsung
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
C
gpl-2.0
54,280
/* packet-manolito.c * Routines for Blubster/Piolet Manolito Protocol dissection * Copyright 2003-2004, Jeff Connelly <shellreef+mp2p@gmail.com> * * Official home page: http://openlito.sourceforge.net/ * * $Id$ * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 ...
hb9cwp/wireshark-jdsu
epan/dissectors/packet-manolito.c
C
gpl-2.0
9,594
#include <linux/etherdevice.h> #include <linux/tcp.h> #include <linux/if_vlan.h> #include <linux/delay.h> #include <linux/slab.h> #include <linux/mlx4/driver.h> #include <linux/mlx4/device.h> #include <linux/mlx4/cmd.h> #include <linux/mlx4/cq.h> #include "mlx4_en.h" #include "en_port.h" static void mlx4_en_vlan_...
luckasfb/OT_903D-kernel-2.6.35.7
kernel/drivers/net/mlx4/en_netdev.c
C
gpl-2.0
27,745
/* * * Copyright (C) 2011 HTC Corporation. * * 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. * * This program is distributed in the hope that it will be usef...
xiaolvmu/villec2-kernel
arch/arm/mach-msm/htc_battery_core.c
C
gpl-2.0
27,232
/* --------------------------- Marine Date by TAITO (1981) --------------------------- Location Device File ID Checksum --------------------------------------------- LB 3D 2716 MG01 BB4B LB 4D 2716 MG02 89B3 LB 5D 2716 MG03 A5CE LB 6D ...
scs/uclinux
user/games/xmame/xmame-0.106/src/drivers/marinedt.c
C
gpl-2.0
20,580
/* * (C) 1997 Linus Torvalds * (C) 1999 Andrea Arcangeli <andrea@suse.de> (dynamic inode allocation) */ #include <linux/export.h> #include <linux/fs.h> #include <linux/mm.h> #include <linux/backing-dev.h> #include <linux/hash.h> #include <linux/swap.h> #include <linux/security.h> #include <linux/cdev.h> #include <li...
AmperificSuperKANG/lge-kernel-d802
fs/inode.c
C
gpl-2.0
45,877
/* * Copyright (c) 2009, Microsoft 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 distributed in the hope it will be useful,...
chvalean/lis-next
hv-rhel7.x/hv/netvsc_drv.c
C
gpl-2.0
65,422
/* * Inter-OS core software * * Copyright (C) 2007 NXP Semiconductors * * 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...
yohanes/Acer-BeTouch-E130-Linux-Kernel
arch/arm/nkernel/xos_ctrl.c
C
gpl-2.0
5,256
/* * Copyright (c) 2017, 2020, Oracle and/or its affiliates. * * 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 above copyright notice,...
smarr/Truffle
sulong/tests/com.oracle.truffle.llvm.tests.sulong.native/c/longdouble/add.c
C
gpl-2.0
1,902
/* Perform various operations on waypoints. Copyright (C) 2002-2007 Robert Lipe, robertlipe@usa.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 Licens...
twpayne/gpsbabel-flytec
waypt.c
C
gpl-2.0
14,178
/** * @file rsa_parse_mem.c * @version $Format:%h%d$ * * Functions for parsing RSA keys from memory. */ /* * Copyright (c) 2013-2018 INSIDE Secure Corporation * Copyright (c) PeerSec Networks, 2002-2011 * All Rights Reserved * * The latest version of this code is availabl...
matrixssl/matrixssl
crypto/pubkey/rsa_parse_mem.c
C
gpl-2.0
9,264
/* A Bison parser, made by GNU Bison 1.875a. */ /* Skeleton parser for Yacc-like parsing with Bison, Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License...
dmbaturin/hope
src/yyparse.c
C
gpl-2.0
99,821
/* BlueZ - Bluetooth protocol stack for Linux Copyright (c) 2000-2001, 2010-2012 Code Aurora Forum. All rights reserved. Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ...
ryrzy/shooter_u_ics_kernel_3.0.xx
net/bluetooth/hci_conn.c
C
gpl-2.0
29,353
#include <gio/gio.h> #if defined (__ELF__) && ( __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6)) # define SECTION __attribute__ ((section (".gresource.wncklet"), aligned (8))) #else # define SECTION #endif static const SECTION union { const guint8 data[4836]; const double alignment; void * const ptr;} wncklet...
SolusOS-discontinued/consort-panel
applets/wncklet/wncklet-resources.c
C
gpl-2.0
34,925
/* WDG -- window widget Copyright (C) ALoR 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 p...
barak/ettercap-old
src/interfaces/curses/widgets/wdg_window.c
C
gpl-2.0
6,912
/* * COPYRIGHT: See COPYING in the top level directory * PROJECT: User Manager Control Panel * FILE: dll/cpl/usrmgr/groups.c * PURPOSE: Groups property page * * PROGRAMMERS: Eric Kohl */ #include "usrmgr.h" typedef struct _GROUP_DATA { HMENU hPopupMenu; INT iCurren...
GreenteaOS/Kernel
third-party/reactos/dll/cpl/usrmgr/groups.c
C
gpl-2.0
14,055
#include "temp.h" void load_TEMP () { fprintf(stdout, "Loading TEMP\n"); int theta_id; //perturbation potential temperature (theta-t0) nc_error(nc_inq_varid (wrfout_id, "T", &theta_id)); wTHETA = malloc (wN3D * sizeof(float)); if (wTHETA==NULL) {fprintf(stderr, "temp.c : Cannot allocate wTHET...
OpenMeteoData/WRF-postprocessing
src/fields/temp/temp.c
C
gpl-2.0
3,349
/* * QEMU System Emulator * * Copyright (c) 2003-2008 Fabrice Bellard * * 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 * ...
coloft/qemu
async.c
C
gpl-2.0
9,399
/* * linux/net/sunrpc/xprt.c * * This is a generic RPC call interface supporting congestion avoidance, * and asynchronous calls. * * The interface works like this: * * - When a process places a call, it allocates a request slot if * one is available. Otherwise, it sleeps on the backlog queue * (xprt_rese...
cohortfsllc/cohortfs-rlayout
net/sunrpc/xprt.c
C
gpl-2.0
31,792
/* * 16.1.3 Wait for Thread Termination, P1003.1c/Draft 10, p. 147 * * COPYRIGHT (c) 1989-2007. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. * ...
yunusdawji/rtems-at91sam9g20ek
cpukit/posix/src/pthreadjoin.c
C
gpl-2.0
1,699
/* Copyright (c) Mark J. Kilgard, 1996, 1997. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ /* Test glutExtensionSupported. */ #include <stdlib.h> #include <stdio.h> #inclu...
aapodoll/ARToolKit
glut/glut-3.7/test/glut/test20.c
C
gpl-2.0
4,035
#include <stdio.h> #include <stdlib.h> #include "ObitAll.h" /* Second program to test functionality */ /* Test uvdata and imaging */ void TestTrace (ObitErr *err); int main ( int argc, char **argv ) { ObitSystem *mySystem; ObitImage *outImage, *beamImage; ObitUV *uvdata, *outuv; ObitTable *tabTmp; ObitTable...
kernsuite-debian/obit
test/test2.c
C
gpl-2.0
7,392
/* * wfalib.c: Library functions both for encoding and decoding * * Written by: Ullrich Hafner * * This file is part of FIASCO ([F]ractal [I]mage [A]nd [S]equence [CO]dec) * Copyright (C) 1994-2000 Ullrich Hafner <hafner@bigfoot.de> */ /* * $Date: 2000/07/18 15:57:28 $ * $Author: hafner $ * $Revis...
l-tamas/Fiasco
codec/wfalib.c
C
gpl-2.0
21,764
/* * Copyright (C) 2010, 2012-2013 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence. ...
vitmod/linux
drivers/amlogic/gpu/mali/platform/meson_main.c
C
gpl-2.0
4,046
/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program 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 Software Foundation. * * This program is distributed...
HPCStack/lustre-release
lustre/ldlm/ldlm_lockd.c
C
gpl-2.0
100,367
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_concat_params.c :+: :+: :+: ...
EpicWAX/Piscine-C
j07/ex03/ft_concat_params.c
C
gpl-2.0
1,720
/* * Copyright (C) 2009-2010 Freescale Semiconductor, Inc. All rights reserved. * * Author: Shaohui Xie <b21989@freescale.com> * Jason Jin <jason.jin@freescale.com> * * Description: * MPC5125 Nand driver. * Port to m54418twr board. * * Based on original driver mpc5121_nfc.c. * * (C) Copyright 2012 * Ale...
blueskycoco/d1
drivers/mtd/nand/fsl_nfc.c
C
gpl-2.0
17,632
/* * Copyright (C) 2006 Jens Axboe <axboe@kernel.dk> * * 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. * * This program is distributed in the hope that it will be useful, * but...
BackupTheBerlios/gemini-board
kernel/trace/blktrace.c
C
gpl-2.0
43,530
/* * linux/arch/arm/common/gic.c * * Copyright (C) 2002 ARM Limited, 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. * * Interrupt architecture for th...
garyvan/openwrt
linux-3.10.20-rt14/drivers/irqchip/irq-gic.c
C
gpl-2.0
22,665