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 <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define RESET_AT 10000000 #define RESET_TO 10000 unsigned int credits=100; unsigned int merchandise=10; unsigned int price=15; unsigned int stars=0; char saveName[64]="\0"; void Game_Help (void) { printf("The object of TAWS (Text Adventu...
cymonsgames/CymonsGames
taws/game.c
C
mit
4,638
/* text version of maze 'mazefiles/binary/apec2012.maz' generated by mazetool (c) Peter Harrison 2018 o---o---o---o---o---o---o---o---o---o---o---o---o---o---o---o---o | | o o---o---o---o---o---o---o---o---o---o---o---o---o---o---o o | | ...
ucgosupl/mm_legend_v2
test/unit_test/mazetool/mazefiles/APEC2012.c
C
mit
3,890
#include <stdio.h> #include "help.h" void help() { printf("usage: carve <-h|-s|-b|-e|-p <num>|-n <num>> [imgPath]\n"); }
DasSpike/seam_carving
src/help.c
C
mit
123
/*---------------------------------------------------------------------------------------------------------*/ /* */ /* Copyright (c) Nuvoton Technology Corp. All rights reserved. ...
Moonhint/Smart-Lock-Prototype
Embed2014/Keil/Library/USB/Source/HIDSys.c
C
mit
28,245
/* $Id: minissdp.c,v 1.44 2013/02/06 10:50:04 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006-2013 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ #include <stdio.h> #include <...
SecretsCoin/SecretsCoin
src/miniupnpc/miniupnp-miniupnpc_1_8/miniupnpd/minissdp.c
C
mit
23,160
#include <stdio.h> #include <string.h> #include "util.h" #include "output.h" #define SB_LOCATION_X 27 #define SB_LOCATION_Y 9 #define SB_WIDTH 26 #define SB_HEIGHT 6 void setScoreboard(void); void printMatrixOnBoardXY(char const **matrix, int x, int y); void printStringOnBoardXY(char const s[], int x, int y); int co...
gto76/race
src/scoreboard.c
C
mit
2,734
//Sprite created using PAGfx //This sprite uses ai_Pal const unsigned char nazi1_projectile_image_Sprite[64] __attribute__ ((aligned (4))) = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
jrgrafton/spitfire-maverick
spitfire_maverick/source/gfx/nazi1_projectile_image.c
C
mit
352
/************************************************************************************ * configs/eagle100/src/up_ethernet.c * arch/arm/src/board/up_ethernet.c * * Copyright (C) 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary form...
Paregov/hexadiv
edno/software/nuttx/configs/eagle100/src/up_ethernet.c
C
mit
4,106
/*numPass=3, numTotal=6 Verdict:ACCEPTED, Visibility:1, Input:"1 0 0 1", ExpOutput:"(1.000,1.000) ", Output:"(1.000,1.000)" Verdict:ACCEPTED, Visibility:1, Input:"1 0 1 0", ExpOutput:"INF ", Output:"INF" Verdict:WRONG_ANSWER, Visibility:1, Input:"-1.25 0 5 4", ExpOutput:"(-0.800,1.250) ", Output:"(1.250,-0.800)" Verdic...
jyi/ITSP
dataset/Lab-3/2811/270168_buggy.c
C
mit
929
/***************************************************************************/ /* */ /* ttsbit.c */ /* */ /* ...
lymastee/gslib
ext/freetype/src/sfnt/ttsbit.c
C
mit
51,006
/* * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project * 2006 */ /* ==================================================================== * Copyright (c) 2006 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ...
vbloodv/blood
extern/openssl.orig/apps/genpkey.c
C
mit
10,817
#include "ioExpanderPc.h" #include <stdbool.h> #define IO_EXPANDER_BIT_COUNT 8 bool ioExpanderPcInit(IOExpander* ioExpander) { return true; } // ALL BITS unsigned char ioExpanderPcReadValue(IOExpander* ioExpander) { unsigned int value = *(ioExpander->object); return (unsigned char) (value...
svanacker/cen-electronic
drivers/ioExpander/pc/ioExpanderPc.c
C
mit
1,423
#include <mun/codegen/compiler.h> #include <mun/codegen/move_resolver.h> #include <mun/array.h> #include "all.h" #include "parallel_move.h" void move_resolver_init(move_resolver* moves, flow_graph_compiler* compiler){ array_init(&moves->moves, 0x4); moves->compiler = compiler; } static void build_initial_moves_li...
MunVM/MunVM
src/codegen/move_resolver.c
C
mit
1,639
/** * Note: The returned array must be malloced, assume caller calls free(). */ int* nextGreaterElement(int* nums1, int nums1Size, int* nums2, int nums2Size, int* returnSize){ *returnSize = nums1Size; int *result = (int *)malloc(sizeof(int) * nums1Size); for (int i = 0; i < nums1Size; i++) { in...
o-jules/LeetCode-Problems
496 next greater element i/c/main.c
C
mit
723
/** * libSeabCarve.c * * Masters Thesis Work * Christopher Stoll, 2015 -- v3, major refactoring */ #ifndef LIBSEAMCARVE_C #define LIBSEAMCARVE_C #include <stdio.h> #include <limits.h> #include <string.h> #include "pixel.h" #include "window.h" #include "libWrappers.c" #include "libBinarization.c" #include "libEne...
stollcri/MastersThesis
src/libSeamCarve.c
C
mit
63,375
/* * FIPS-180-2 compliant SHA-384/512 implementation * * Copyright (C) 2006-2010, Brainspark B.V. * * This file is part of PolarSSL (http://www.polarssl.org) * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org> * * All rights reserved. * * This program is free software; you can redistrib...
netgroup/dstreamon
d-streamon/lib/hash/C/sha4.c
C
mit
24,228
/* * This is the low level driver for the ttun interface. * It creates a TCP tunnel between two routers * Design and much of the code is from tun.c by Ahmed Youssef * * Copyright (C) 2016 GINI Cloud */ #include <slack/err.h> #include "tun.h" #include "packetcore.h" #include "classifier.h" #include "filter.h" ...
bernardkaminski/gini
backend/src/grouter/ttun.c
C
mit
8,614
//***************************************************************************** // talloc // // File: pool.h // Author: Martin Dorazil // Date: 19/05/2017 // // Copyright 2017 Martin Dorazil // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documen...
travisdoor/biscuit
thirdparty/talloc_1.4.0/src/pool.c
C
mit
5,693
#include <stdio.h> #include <stdlib.h> void calc(int fib[],int n) { int i; for (i = 0; i < n; i++) { fib[i]=fib[i-1]+fib[i-2]; } } int main() { int i,n,fib[100]; //wrong1: fib[0]=fib[1]=1; scanf("%d", &n); //wrong2: for (i = 2; i < n; i++) { calc(fib,n); for (i = 0; i < n;...
Hangxiaoyuan/Slides
c程序调试技术/fordebug/main.c
C
mit
383
//Code for codeforces problem 597A by Peter Huang in Jan.14 2016 int main(int args, char **argv) { long long k, a, b; scanf("%I64d %I64d %I64d", &k, &a, &b); long long total; long long specialStepA = a/k; if (a < 0 && a%k != 0) specialStepA--;// Mkae the boundary operation seam as positiv...
PeterHuang2015/BITDM
c/codeforces/597A.c
C
mit
565
#include <stdlib.h> #include "thc.h" int *prime_factors(int n, int *result_size) { int *result; int prime = 2; result = malloc(sizeof(int) * 1024); *result_size = 0; while (n > 1) { if (n % prime == 0) { result[(*result_size)++] = prime; while (n % prime == 0) { ...
hltbra/thc
samples/primefactors.c
C
mit
1,498
#include "stm32f4xx_hal.h" #include "stm32f4xx.h" #include "stm32f4xx_it.h" #include "tim.h" #include <stdbool.h> /******************************************************************************/ /* Cortex-M4 Processor Interruption and Exception Handlers */ /***********...
dumpram/stm32_real_time_test
Src/stm32f4xx_it.c
C
mit
3,820
/* Copyright (c) 2008-2013, The WinCoin Project, Inc. */ /* See LICENSE for licensing information */ /** \file memarea.c * \brief Implementation for memarea_t, an allocator for allocating lots of * small objects that will be freed all at once. */ #include "orconfig.h" #include <stdlib.h> #include "memarea.h" #incl...
Wincoinofficial/wincoin
src/tor/memarea.c
C
mit
10,033
/** * @file * * IPv6 fragmentation and reassembly. */ /* * Copyright (c) 2010 Inico Technologies Ltd. * 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 c...
abit-corp/phs-shield
LwIP/src/core/ipv6/ip6_frag.c
C
mit
22,923
// 22 april 2015 #include "test.h" // TODOs // - blank page affects menus negatively on Windows void die(const char *fmt, ...) { va_list ap; va_start(ap, fmt); fprintf(stderr, "[test program] "); vfprintf(stderr, fmt, ap); fprintf(stderr, "\n"); va_end(ap); abort(); } int onClosing(uiWindow *w, void *data) {...
tbodt/libui
test/main.c
C
mit
3,431
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE127_Buffer_Underread__malloc_char_ncpy_17.c Label Definition File: CWE127_Buffer_Underread__malloc.label.xml Template File: sources-sink-17.tmpl.c */ /* * @description * CWE: 127 Buffer Under-read * BadSource: Set data pointer to before the allocated memory b...
maurer/tiamat
samples/Juliet/testcases/CWE127_Buffer_Underread/s02/CWE127_Buffer_Underread__malloc_char_ncpy_17.c
C
mit
3,520
#include <stdio.h> //#include <stdlib.h> #include "mem_alloc.h" #define SIZE_BUFFER 128 void aide(void){ } int main(int argc, char *argv[]) { char buffer[SIZE_BUFFER]; char commande; char *adresse; int offset; int taille; aide(); memory_init(); while (1) { printf("? "); fflush(stdout); commande = g...
armandooj/MemoryAllocator
mem_shell.c
C
mit
934
/* * * TINKER Source Code * * * [2009] - [2013] Samuel Steven Truscott * All Rights Reserved. */ #include "time/alarm_manager.h" #include "config.h" #include "process/process.h" #include "memory/memory_manager.h" #include "time/time.h" #include "time/time_manager.h" #include "utils/collections/unbounded_list...
sam-truscott/tinker-kernel
kernel/src/kernel/c/time/alarm_manager.c
C
mit
6,556
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_connect_socket_execl_67b.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-67b.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data using ...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s01/CWE78_OS_Command_Injection__char_connect_socket_execl_67b.c
C
mit
2,850
#include <stdio.h> #include <string.h> #include <stdlib.h> float fadd(float, float); int main(void) { float m_firstValue = 41.0f, m_secondValue = 1.0f; float m_resultValue; m_resultValue = fadd(m_firstValue, m_secondValue); printf("%lf\n", m_resultValue); return 0; } float fadd(float a_firstValue...
uriybashkirov/CHALLENGE-ACCEPTED
Labor8/Listing3.c
C
mit
429
/************************************* * Calculating Pi with using method: * * integral 4.0/(1+x^2) dx = p * * Serial Version * ************************************/ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> // Reference value to estimate error double PI_ref=3.141592...
mohsinshaikh786/mock-repo
Solutions/c/src/pi-serial.c
C
cc0-1.0
1,182
#include <stdlib.h> #include <curses.h> #include <signal.h> static void finish(int sig); int main(int argc, char *argv[]) { int num = 0; /* initialize your non-curses data structures here */ (void) signal(SIGINT, finish); /* arrange interrupts to terminate */ (void) initscr(); /* initiali...
RoasterBot/roasterbot-analytics
python/csrc/ncurses_capp.c
C
cc0-1.0
1,660
/* ################################################################### ** THIS COMPONENT MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT. ** Filename : TU1.c ** Project : LedBlink ** Processor : MKL46Z256VLL4 ** Component : TimerUnit_LDD ** Version : Component 01.164, Driver 01....
santiagosalamandri/FREESCALE-MKL46Z256
Proyectos/LedBlink/Generated_Code/TU1.c
C
cc0-1.0
11,523
/* $Id: Multilevel.c,v 1.8 2011/02/28 16:19:43 erg Exp $ $Revision: 1.8 $ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made avai...
tomgr/graphviz-cmake
lib/sfdpgen/Multilevel.c
C
epl-1.0
35,603
/* $Id: exeval.c,v 1.15 2011/01/25 16:30:48 ellson Exp $ $Revision: 1.15 $ */ /* 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/expr/exeval.c
C
epl-1.0
48,442
#include <stdio.h> int main(){ char* mensaje= "Hola a todos"; printf("%s\n", mensaje); return 0; }
liobouchan/24HolaMundos
8.c
C
gpl-2.0
102
/* * GPMC support functions * * Copyright (C) 2005-2006 Nokia Corporation * * Author: Juha Yrjola * * 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/kernel....
xoox/linux-2.6.18_pro500
arch/arm/mach-omap2/gpmc.c
C
gpl-2.0
9,258
/* @(#) $Id: ./src/analysisd/lists_make.c, 2011/09/08 dcid Exp $ */ /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public * License (version 3) as published by the FSF - Free Software ...
dcid/ossec-hids
src/analysisd/lists_make.c
C
gpl-2.0
3,543
#include "pm.h" typedef struct gdt_entry_s { u16 limit0_15; u16 base0_15; u8 base16_23; u8 type: 4; u8 dtype: 1; u8 dpl: 2; u8 present:1; u8 limit16_19: 4; u8 avl: 1; u8 l: 1; u8 dsize: 1; u8 granularity: 1; u8 base24_31; } __attribute__((packed,aligned(8))) gdt_entry_t; typedef struct tss_...
Saruta/atomos
arch/pm.c
C
gpl-2.0
3,493
/* * linux/arch/arm/mm/flush.c * * Copyright (C) 1995-2002 Russell King * * 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/module.h> #include <linux/mm.h> #...
RIP95/android_kernel_zte_msm8960
arch/arm/mm/flush.c
C
gpl-2.0
8,840
/* * Copyright (C) 2010 Freescale Semiconductor, 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; either version 2 of the License, or * (at your option) any late...
fread-ink/linux-2.6.35.3-imx5-kindle4
drivers/dma/pxp/pxp_device.c
C
gpl-2.0
11,836
/* plane.c -- part of vulcan * * This program is copyright (C) 2006 Mauro Persano, and is free * software which is freely distributable under the terms of the * GNU public license, included as the file COPYING in this * distribution. It is NOT public domain software, and any * redistribution not permitted by the...
brand7n/vulcan
lib3d/plane.c
C
gpl-2.0
1,403
/* * Device probing and sysfs code. * * Copyright (C) 2005-2006 Kristian Hoegsberg <krh@bitplanet.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, ...
mpalmer/linux-2.6
drivers/firewire/fw-device.c
C
gpl-2.0
26,067
#include <linux/init.h> #include <linux/module.h> #include <linux/interrupt.h> #include <mach/hardware.h> #include <asm/irq.h> #include <asm/mach/irq.h> #include <mach/irqs.h> #include "common.h" static void lh7a400_mask_irq (u32 irq) { INTC_INTENC = (1 << irq); } static void lh7a400_unmask_irq (u32 irq) { ...
leemgs/OptimusOneKernel-KandroidCommunity
arch/arm/mach-lh7a40x/irq-lh7a400.c
C
gpl-2.0
1,407
/* Login code for S/KEY Authentication. S/KEY is a trademark * of Bellcore. * * Mink is the former name of the S/KEY authentication system. * Many references for mink may still be found in this program. */ #include <sys/param.h> #ifdef QUOTA #include <sys/quota.h> #endif #include <sys/stat.h> #include ...
dkorunic/pam_skey
libskey/skeylogin.c
C
gpl-2.0
6,708
/* * 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...
andr00ib/victor-oficial-kernel
drivers/mmc/card/block.c
C
gpl-2.0
39,680
/**************************************************************** * * * Copyright 2001, 2002 Sanchez Computer Associates, Inc. * * * * This source code contains the intellectual property * * of its copyright holder(s), and is made available * * under a license. If you do not know the terms of * * ...
h4ck3rm1k3/FIS-GT.M
sr_port/exfun_frame.c
C
gpl-2.0
1,612
/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. Copyright (C) 2007 HermitWorks Entertainment Corporation This file is part of the Space Trader source code. The Space Trader source code is free software; you can redistribute it and/or modify it u...
ballju/SpaceTrader-GPL-1.1.14
code/server/sv_init.c
C
gpl-2.0
22,853
/* libFLAC - Free Lossless Audio Codec library * Copyright (C) 2000-2009 Josh Coalson * Copyright (C) 2011-2013 Xiph.Org Foundation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributio...
bit-trade-one/SoundModuleAP
lib-src/libflac/src/libFLAC/lpc.c
C
gpl-2.0
48,038
/* $Id: string.c 3207 2010-06-16 14:49:37Z bennylp $ */ /* * Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publ...
kaaustubh/pjsip
pjlib/src/pj/string.c
C
gpl-2.0
4,514
/* * Copyright (c) 2015, 2019, 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 ...
smarr/Truffle
substratevm/src/com.oracle.svm.native.libchelper/src/getEnviron.c
C
gpl-2.0
2,831
// // Created by Noisyfox on 2017/5/17. // Simple Barrier implementation // #include "barrier.h" void barrier_init(barrier_t *barrier, int count) { barrier->count = count; barrier->current = 0; barrier->phase = 0; pthread_mutex_init(&barrier->mutex, NULL); pthread_cond_init(&barrier->cond, NULL); ...
Noisyfox/COMP5426_RedBlue
pthreads/barrier.c
C
gpl-2.0
941
/* * c_heap.c - (Min-/Max-)Heap and PrioSet * * Copyright (C) 2014 Tobias Boege <tobias@gambas-buch.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; either version 2, or (at your opt...
justlostintime/gambas
main/lib/data/c_heap.c
C
gpl-2.0
10,211
/* * fs/bfs/dir.c * BFS directory operations. * Copyright (C) 1999,2000 Tigran Aivazian <tigran@veritas.com> * Made endianness-clean by Andrew Stribblehill <ads@wompom.org> 2005 */ #include <linux/time.h> #include <linux/string.h> #include <linux/fs.h> #include <linux/buffer_head.h> #include <linux/sched.h>...
Core2idiot/Kernel-Samsung-3.0...-
fs/bfs/dir.c
C
gpl-2.0
9,294
/* * print_file_size.c - Part of AFD, an automatic file distribution program. * Copyright (c) 2004 - 2016 Holger Kiehl <Holger.Kiehl@dwd.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 Foun...
holger24/AFD
src/UI/common/print_file_size.c
C
gpl-2.0
6,871
#include "mnb-pasteboard-marshal.h" #include <glib-object.h> #ifdef G_ENABLE_DEBUG #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) #define g_marshal_value_peek_char(v) g_value_get_char (v) #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) #define g_marshal_value_peek_int(v) g_v...
dudochkin-victor/gogoo-panel-pasteboard
src/mnb-pasteboard-marshal.c
C
gpl-2.0
4,014
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "../MATRIX/matrix.h" #include "../LINKLIST2/linklist2.h" #include "analysis.h" void usage(void){ printf("You must pass the name .path file as an argument\n"); printf("./run_analysis filename.path\n"); } int readPath(char * FileName){ char buf[2...
JoshuaSBrown/OPV_MonteCarloCode_V2
src/TOOLS/analysis.c
C
gpl-2.0
12,311
// printf関数、及びscanf関数を使用するために必要 #include <stdio.h> // int型を返すmain関数の宣言 int main() { // 変数の宣言 int i; int charCount; // scanf関数。標準入力から入力を取得する。 // scanfには変数のアドレスを渡すため、& を語頭に付与する。 // scanf(フォーマット指定子, 変数) scanf("%d", &charCount); // * を表示する度、0 になるまでcharCountをデクリメントする。 // for (初期化文;...
conao/develop
c/pj/5/kadai5-3.c
C
gpl-2.0
860
/* * This is the Fusion MPT base driver providing common API layer interface * for access to MPT (Message Passing Technology) firmware. * * This code is based on drivers/scsi/mpt2sas/mpt2_base.c * Copyright (C) 2007-2010 LSI Corporation * (mailto:DL-MPTFusionLinux@lsi.com) * * This program is free software; y...
munjeni/android_kernel_xperiago
drivers/scsi/mpt2sas/mpt2sas_base.c
C
gpl-2.0
120,696
/***************************************************************************** * * wave.c * * PHASEX: [P]hase [H]armonic [A]dvanced [S]ynthesis [EX]periment * * Copyright (C) 1999-2009 William Weston <weston@sysex.net> * * This program is free software; you can redistribute it and/or * modify it under the ter...
disabled/phasex-dev
src/wave.c
C
gpl-2.0
18,827
/** ****************************************************************************** * @file USB_Device/CDC_Standalone/Src/usbd_conf.c * @author MCD Application Team * @version V1.3.1 * @date 09-October-2015 * @brief This file implements the USB Device library callbacks and MSP *************...
kamfor/STMF4
STM/Projects/STM324xG_EVAL/Applications/USB_Device/CDC_Standalone/Src/usbd_conf.c
C
gpl-2.0
16,724
/* * Copyright (C) 2011 Bticino S.p.A. * * 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 dis...
bticino/bubl
main.c
C
gpl-2.0
7,921
/* -*- mode: c; c-basic-offset: 8 -*- */ /* NCR (or Symbios) 53c700 and 53c700-66 Driver * * Copyright (C) 2001 by James.Bottomley@HansenPartnership.com **----------------------------------------------------------------------------- ** ** This program is free software; you can redistribute it and/or modify ** it u...
skywalker01/Samsung-Galaxy-S-Plus
drivers/scsi/53c700.c
C
gpl-2.0
71,207
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * Copyright (C) 20011 Red Hat, Inc. * * Author: David Zeuthen <davidz@redhat.com> */ #include "config.h" #include <pwd.h> #define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE #include <polkitagent/polkitagent.h> #include "shell-polkit-authent...
magcius/gnome-shell
src/shell-polkit-authentication-agent.c
C
gpl-2.0
13,533
#include <stdio.h> #define N 21 #define M 21 unsigned char x[5][M]={-1}; void ufu(){ int i,k,j,l; time_t t; srand(time(&t)); int ii; for(ii=0;ii<2;ii++){ for(i=0;i<M;i++) x[ii][i]= -1; i=rand()%M; x[ii][M-1]= i; i=0; while(i<M-1){ k=0; j=rand()%M; for(l=0;l<i+1;l++){ if(x[ii][l]==j && j!=x[ii]...
anang0g0/kryptism
etc/okama.c
C
gpl-2.0
1,153
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Copyright (C) 2007-2008 Collabora Ltd. * * 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 * ve...
gcorvala/gsoc2008
libempathy-gtk/empathy-contact-dialogs.c
C
gpl-2.0
9,578
/* * * $Id: read_PCM.c 121 2005-04-11 14:17:18Z federico $ * * This file is part of Fenice * * Fenice -- Open Media Server * * Copyright (C) 2004 by * * - Giampaolo Mancini <giampaolo.mancini@polito.it> * - Francesco Varano <francesco.varano@polito.it> * - Marco Penno <marco.penno@polito.it> * - ...
zhuqingcode/fenice-1.11
mediainfo/read_PCM.c
C
gpl-2.0
3,293
#include <element.h> int update_FOG(UPDATE_FUNC_ARGS) { int r, rx, ry; for (rx=-1; rx<2; rx++) for (ry=-1; ry<2; ry++) if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry)) { r = pmap[y+ry][x+rx]; if (!r && rand()%2500==0) { if (parts[i].temp > 253.15) ...
me4502/Powder-Sim
src/elements/fog.c
C
gpl-2.0
1,052
/* * osd_clock * * Copyright (C) 2001, Jon Beckham <leftorium@<leftorium@leftorium.net> * Martijn van de Streek <martijn@foodfight.org> * 2017, Daniel González Cabanelas <dgcbueu@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the...
danitool/osd_clock
osd_clock.c
C
gpl-2.0
4,473
/* * main_stick * * send joystick control to paparazzi through ivy * * based on Force Feedback: Constant Force Stress Test * Copyright (C) 2001 Oliver Hamann * * 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...
pchickey/paparazzi-linux-release
sw/ground_segment/joystick/main_stick.c
C
gpl-2.0
5,779
/*****************************************************************************/ /* rfc959.c - General purpose routines for the FTP protocol (RFC 959) */ /* Copyright (C) 1998-2007 Brian Masney <masneyb@gftp.org> */ /* */ ...
pvtc/gftp-gtk3
lib/rfc959.c
C
gpl-2.0
53,870
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <time.h> #include <rnode.h> #include <rbinary_tree.h> int* create_int_data(int); void print_int_data(void*); int compare_int_data(void*, void*); int main(int argc, char **argv) { int c = 0; btree_t* tree = 0; node_t* aux = 0; int data_to_sear...
rgcr/dsrc
examples/example_bst.c
C
gpl-2.0
2,153
/* Reincarnation Server. This servers starts new system services and detects * they are exiting. In case of errors, system services can be restarted. * The RS server periodically checks the status of all registered services * services to see whether they are still alive. The system services are * expected t...
sudev/MinixMajor
code/servers/rs/main.c
C
gpl-2.0
23,814
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* * 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 License, or (at your option) ...
sgros/MIF_NetworkManager
libnm-core/nm-setting-wired.c
C
gpl-2.0
40,087
/*************************************************************************** * Copyright (C) 2010 by Blade_Arma * * * * This program is free software; you can redistribute it and/or modify * * it unde...
tetious/pcsxr
plugins/bladesio1/settings.c
C
gpl-2.0
2,294
#include <efi.h> #include <efilib.h> #include "shelliface.h" #include "sb.h" /* XXX probably shouldn't ship defaulting to this */ EFI_GUID rh_guid = {0x0abba7dc, 0xe516, 0x4167, {0xbb,0xf5,0x4d,0x9d,0x1c,0x73,0x94,0x16}}; /* XXX this needs to be moved into gnu-efi */ EFI_GUID gEfiShellInterfaceGuid = EFI_SHELL_INTE...
vathpela/pesign
util/setupsb.c
C
gpl-2.0
13,673
/* sane - Scanner Access Now Easy. Copyright (C) 2000-2001 Kazuya Fukuda, based on sharp.c, which is based on canon.c. This file is part of the SANE package. 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 th...
dwery/sane-evolution
backend/nec.c
C
gpl-2.0
98,935
/***************************************************************************** * rtpfmt.c: RTP payload formats ***************************************************************************** * Copyright (C) 2003-2004 VLC authors and VideoLAN * Copyright © 2007 Rémi Denis-Courmont * $Id: 75b4143762b16657ba0a378d5081c...
sunqueen/vlc-2.2.0-rc2.32-2013
modules/stream_out/rtpfmt.c
C
gpl-2.0
52,630
m4_divert(-1) -*- C -*- # Yacc compatible skeleton for Bison # Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GN...
bloudraak/yaxx
bison/data/yacc-2.3.c
C
gpl-2.0
41,735
/* * jabberd - Jabber Open Source Server * Copyright (c) 2002 Jeremie Miller, Thomas Muldowney, * Ryan Eatmon, Robert Norris * * 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 Found...
yurial/jabberd2
s2s/router.c
C
gpl-2.0
11,812
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein is * confidential and proprietary to MediaTek Inc. and/or its licensors. Without * the prior written permission of MediaTek inc. and/or ...
rex-xxx/mt6572_x201
mediatek/external/lcdc_screen_cap/lcdc_screen_cap.c
C
gpl-2.0
12,965
/* * video output driver for libcaca * * by Pigeon <pigeon@pigeond.net> * * Some functions/codes/ideas are from x11 and aalib vo * * TODO: support draw_alpha? * * This file is part of MPlayer. * * MPlayer is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public ...
Cloudef/mpv
video/out/vo_caca.c
C
gpl-2.0
9,431
//----------------------------------------------------------------------------- // Merlok - 2012 // // This code is licensed to you under the terms of the GNU GPL, version 2 or, // at your option, any later version. See the LICENSE.txt file for the text of // the license. //---------------------------------------------...
samyk/proxmark3
armsrc/mifaresniff_disabled.c
C
gpl-2.0
11,783
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * GThumb * * Copyright (C) 2009 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 as published by * the Free Software F...
novas0x2a/gthumb
extensions/pixbuf_savers/gth-jpeg-saver.c
C
gpl-2.0
13,653
#include "f2c.h" /* Subroutine */ int clarnv_(integer *idist, integer *iseed, integer *n, complex *x) { /* -- LAPACK auxiliary routine (version 2.0) -- Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd., Courant Institute, Argonne National Lab, and Rice University September 30, 19...
dribbroc/HONEI
honei/math/SuperLU_4.1/TESTING/MATGEN/clarnv.c
C
gpl-2.0
5,128
/* * Driver for keys on GPIO lines capable of generating interrupts. * * Copyright 2005 Phil Blundell * Copyright 2010, 2011 David Jander <david@protonic.nl> * * 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 b...
meizuosc/m75
mediatek/kernel/drivers/keypad/gpio_keys.c
C
gpl-2.0
24,528
/* * linux/mm/vmscan.c * * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds * * Swap reorganised 29.12.95, Stephen Tweedie. * kswapd added: 7.1.96 sct * Removed kswapd_ctl limits, and swap out as many pages as needed * to bring the system back to freepages.high: 2.4.97, Rik van Riel. * Zone aware k...
AirOne70/android_kernel_asus_grouper
mm/vmscan.c
C
gpl-2.0
101,857
// Copyright (C) 1999-2000 Id Software, Inc. // #include "g_local.h" #include "..\ghoul2\g2.h" // g_client.c -- client functions that don't happen every frame static vec3_t playerMins = {-15, -15, DEFAULT_MINS_2}; static vec3_t playerMaxs = {15, 15, DEFAULT_MAXS_2}; forcedata_t Client_Force[MAX_CLIENTS]; /*QUAKED i...
Boothand/Birdbones
code/game/g_client.c
C
gpl-2.0
50,932
/*****************************************************************************\ * Copyright (C) 2001-2007 The Regents of the University of California. * Copyright (C) 2007-2014 Lawrence Livermore National Security, LLC. * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). * Written by Jim Garl...
pete4abw/scrub
src/sig.c
C
gpl-2.0
3,662
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <string.h> #include <sys/mman.h> /* char *shellcode= \ "\x31\xdb" "\x31\xc9" "\x31\xd2" "\x31\xc0" "\xb0\x17\xcd\x80" //setuid(0) "\x31\xc0" "\x50" "\x68" ...
sigma-random/Linux_Shellcode
read_file/shellcode_loader.c
C
gpl-2.0
2,116
/* ANSI-C code produced by gperf version 3.0.1 */ /* Command-line: gperf -a -L ANSI-C -E -C -c -o -t -k '*' -Nkde_findEntity -D -Hhash_Entity -Wwordlist_Entity -s 2 kentities.gperf */ #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) && (')' ==...
serghei/kde3-kdelibs
kdecore/kentities.c
C
gpl-2.0
26,881
/* * Copyright (c) 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 h...
cbolumar/android_kernel_samsung_a3ulte
drivers/clk/qcom/clock-cpu-8939.c
C
gpl-2.0
11,593
/* * Copyright (C) 1996-2015 The Squid Software Foundation and contributors * * Squid software is distributed under GPLv2+ license and includes * contributions from numerous individuals and organizations. * Please see the COPYING and CONTRIBUTORS files for details. */ /* * Encoders adopted from http://ftp.sunet...
hieuit7/freewifi
squid-proxy/squid-3.5.3/lib/base64.c
C
gpl-2.0
6,110
/* main.c - Frotz V2.40 main function * Copyright (c) 1995-1997 Stefan Jokisch * * This file is part of Frotz. * * Frotz 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, ...
DavidKinder/Windows-Frotz
Generic/main.c
C
gpl-2.0
4,052
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- * * mate-rr-labeler.c - Utility to label monitors to identify them * while they are being configured. * * Copyright 2008, Novell, Inc. * * This file is part of the Mate Library. * * The Mate Library is free software; you can redistribute ...
City-busz/mate-desktop
libmate-desktop/mate-rr-labeler.c
C
gpl-2.0
16,664
#include "capwap.h" #include "capwap_element.h" /******************************************************************** 0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Maximum Message Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Type: 29 for Maximum Message Length Length:...
nm-mrt/smartcapwap
src/common/capwap_element_maximumlength.c
C
gpl-2.0
1,877
/**************************************************************************** * * Open Watcom Project * * Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved. * * ======================================================================== * * This file contains Original Code...
OS2World/DEV-UTIL-SNAP
src/snaprtl/clib/char/c/isascii.c
C
gpl-2.0
1,674
/**************************************************************************** * * acl.c - a small library for nrpe.c. It adds IPv4 subnets support to ACL in nrpe. * * License: GPLv2 * Copyright (c) 2011 Kaspersky Lab ZAO * * Description: * * acl.c creates two linked lists. One is for IPv4 hosts and networks, a...
NagiosEnterprises/nrpe
src/acl.c
C
gpl-2.0
21,230
/* * TI Touch Screen / ADC MFD driver * * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.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 version 2. * * This pro...
jmc8/linux
drivers/mfd/ti_am335x_tscadc.c
C
gpl-2.0
9,643
/* * Copyright (c) 2005-2012 NFG Net Facilities Group BV support@nfg.nl * * 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) a...
moveone/dbmail
test/check_dbmail_user.c
C
gpl-2.0
4,873