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
/* * C-Media CMI8788 driver for C-Media's reference design and similar models * * Copyright (c) Clemens Ladisch <clemens@ladisch.de> * * * This driver is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2. * * This driver is distributed in ...
bestmjh47/android_kernel_samsung_aries
sound/pci/oxygen/oxygen.c
C
gpl-2.0
16,152
/* _ufix64toa_r: convert unsigned 64-bit fixed point to ASCII string. * * This routine converts an unsigned fixed-point number to long double format and * then calls _ldtoa_r to do the conversion. * * Written by Jeff Johnston. */ #ifdef __SPE__ #include <_ansi.h> #include <limits.h> #include <errno.h> #include ...
GarethNelson/Zoidberg
userland/newlib/newlib/libc/machine/powerpc/ufix64toa.c
C
gpl-2.0
2,042
/*====================================================================== Aironet driver for 4500 and 4800 series cards This code is released under both the GPL version 2 and BSD licenses. Either license may be used. The respective licenses are found at the end of this file. This code was develop...
AiJiaZone/linux-4.0
virt/drivers/net/wireless/airo.c
C
gpl-2.0
223,356
/* * Ralink RT288x SoC specific interrupt handling * * Copyright (C) 2008-2009 Gabor Juhos <juhosg@openwrt.org> * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org> * * 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 pub...
olanb7/fyp-openwrt
target/linux/ramips/files/arch/mips/ralink/rt288x/irq.c
C
gpl-2.0
1,819
/* * extcon-max14577.c - MAX14577 extcon driver to support MAX14577 MUIC * * Copyright (C) 2013 Samsung Electrnoics * Chanwoo Choi <cw00.choi@samsung.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 So...
iwinoto/v4l-media_build-devel
media/drivers/extcon/extcon-max14577.c
C
gpl-2.0
20,645
#include "../evlist.h" #include "../cache.h" #include "../evsel.h" #include "../sort.h" #include "../hist.h" #include "../helpline.h" #include "gtk.h" #define MAX_COLUMNS 32 static int __percent_color_snprintf(struct perf_hpp *hpp, const char *fmt, ...) { int ret = 0; int len; va_list args; double percent; con...
bas-t/linux_media
tools/perf/ui/gtk/hists.c
C
gpl-2.0
17,230
// SPDX-License-Identifier: GPL-2.0 /* * Ptrace user space interface. * * Copyright IBM Corp. 1999, 2010 * Author(s): Denis Joseph Barrow * Martin Schwidefsky (schwidefsky@de.ibm.com) */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/sched/task_stack.h> #include <linux/mm...
BPI-SINOVOIP/BPI-Mainline-kernel
linux-4.19/arch/s390/kernel/ptrace.c
C
gpl-2.0
46,646
/* Copyright (c) 2012-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...
simar7/singhdroid
kernel/drivers/thermal/msm8974-tsens.c
C
gpl-2.0
52,485
/* { dg-options "-mabi=32 -mfp64 -EL" } */ /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ NOMIPS16 double foo (double d) { register double l1 asm ("$8") = d; register double l2 asm ("$f20") = 0.0; asm ("#foo" : "=d" (l1) : "d" (l1)); asm volatile ("#foo" :: "f" (l2)); return l1; } /* { ...
selmentdev/selment-toolchain
source/gcc-latest/gcc/testsuite/gcc.target/mips/fpr-moves-3.c
C
gpl-3.0
700
/* * Atmel AT45xxx DataFlash MTD driver for lightweight SPI framework * * Largely derived from at91_dataflash.c: * Copyright (C) 2003-2005 SAN People (Pty) Ltd * * 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...
WhiteBearSolutions/WBSAirback
packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/drivers/mtd/devices/mtd_dataflash.c
C
apache-2.0
25,289
/* * f_qc_ecm.c -- USB CDC Ethernet (ECM) link function driver * * Copyright (C) 2003-2005,2008 David Brownell * Copyright (C) 2008 Nokia Corporation * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the term...
shakalaca/ASUS_ZenFone_ZD551KL
kernel/drivers/usb/gadget/f_qc_ecm.c
C
gpl-2.0
35,111
/* * Copyright (c) 2011 Synaptics Incorporated * * 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 progr...
DmitryADP/diff_qc750
kernel/drivers/input/touchscreen/rmi4/rmi_f54.c
C
gpl-2.0
38,723
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2012 Linutronix GmbH * Copyright (c) 2014 sigma star gmbh * Author: Richard Weinberger <richard@nod.at> */ /** * update_fastmap_work_fn - calls ubi_update_fastmap from a work queue * @wrk: the work description object */ static void update_fastmap_work_...
Naoya-Horiguchi/linux
drivers/mtd/ubi/fastmap-wl.c
C
gpl-2.0
9,831
/* * Ultra Wide Band * Neighborhood Management Daemon * * Copyright (C) 2005-2006 Intel Corporation * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.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...
rimistri/mediatek
mt6732/kernel/drivers/uwb/uwbd.c
C
gpl-2.0
10,500
/* * originally written by: Kirk Reiser <kirk@braille.uwo.ca> * this version considerably modified by David Borowski, david575@rogers.com * * Copyright (C) 1998-99 Kirk Reiser. * Copyright (C) 2003 David Borowski. * * This program is free software; you can redistribute it and/or modify * it under the terms of t...
prasidh09/cse506
unionfs-3.10.y/drivers/staging/speakup/speakup_decext.c
C
gpl-2.0
7,252
/* vi: set sw=4 ts=4: */ /* * parse_mode implementation for busybox * * Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org> * * Licensed under GPLv2 or later, see file LICENSE in this source tree. */ /* Mar 5, 2003 Manuel Novoa III * * This is the main work function for the 'mkdir' applet. As such, i...
Bytewerk/uClinux-ipcam
user/busybox/libbb/make_directory.c
C
gpl-2.0
3,426
/* * CAPI encoder/decoder for * Portugal Telecom CAPI 2.0 * * Copyright (C) 1996 Universidade de Lisboa * * Written by Pedro Roque Marques (roque@di.fc.ul.pt) * * This software may be used and distributed according to the terms of * the GNU General Public License, incorporated herein by reference. * * Not co...
AiJiaZone/linux-4.0
virt/drivers/isdn/pcbit/capi.c
C
gpl-2.0
13,137
/* * Weida HiTech WDT87xx TouchScreen I2C driver * * Copyright (c) 2015 Weida Hi-Tech Co., Ltd. * HN Chen <hn.chen@weidahitech.com> * * This software is licensed under the terms of the GNU General Public * License, as published by the Free Software Foundation, and * may be copied, distributed, and modified und...
tejaswanjari/SMR_FS-EXT4
kernel/drivers/input/touchscreen/wdt87xx_i2c.c
C
gpl-2.0
27,655
/* ******************************************************************************* * * Copyright (C) 1998-2014, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* * * File ucbuf.c * * Modification History:...
Teamxrtc/webrtc-streaming-node
third_party/webrtc/src/chromium/src/third_party/icu/source/tools/toolutil/ucbuf.c
C
mit
23,253
/************************************************************************** * * Copyright © 2007 David Airlie * Copyright © 2009 VMware, Inc., Palo Alto, CA., USA * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentatio...
kularny/GeniSys.Kernel
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
C
gpl-2.0
15,778
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2007 IBM Corporation * * Author: Cedric Le Goater <clg@fr.ibm.com> */ #include <linux/nsproxy.h> #include <linux/ipc_namespace.h> #include <linux/sysctl.h> #ifdef CONFIG_PROC_SYSCTL static void *get_mq(struct ctl_table *table) { char *which = table->d...
CSE3320/kernel-code
linux-5.8/ipc/mq_sysctl.c
C
gpl-2.0
2,800
/* * Copyright 2014 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, m...
geminy/aidear
oss/linux/linux-4.7/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
C
gpl-3.0
26,965
// SPDX-License-Identifier: GPL-2.0-or-later /* * Generic System Framebuffers on x86 * Copyright (c) 2012-2013 David Herrmann <dh.herrmann@gmail.com> * * EFI Quirks Copyright (c) 2006 Edgar Hucek <gimli@dark-green.com> */ /* * EFI Quirks * Several EFI systems do not correctly advertise their boot framebuffers. ...
CSE3320/kernel-code
linux-5.8/arch/x86/kernel/sysfb_efi.c
C
gpl-2.0
10,399
/* Intel Sandy Bridge -EN/-EP/-EX Memory Controller kernel module * * This driver supports the memory controllers found on the Intel * processor family Sandy Bridge. * * This file may be distributed under the terms of the * GNU General Public License version 2 only. * * Copyright (c) 2011 by: * Mauro Carvalho...
tejaswanjari/SMR_FS-EXT4
kernel/drivers/edac/sb_edac.c
C
gpl-2.0
69,590
/* via_dmablit.c -- PCI DMA BitBlt support for the VIA Unichrome/Pro * * Copyright (C) 2005 Thomas Hellstrom, 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 deal in the Software with...
felixhaedicke/nst-kernel
src/drivers/gpu/drm/via/via_dmablit.c
C
gpl-2.0
21,930
/* * File: arch/blackfin/mach-bf537/ints-priority.c * Based on: arch/blackfin/mach-bf533/ints-priority.c * Author: Michael Hennerich * * Created: * Description: Set up the interrupt priorities * * Modified: * Copyright 2004-2006 Analog Devices Inc. * * Bugs: Enter bug...
felixhaedicke/nst-kernel
src/arch/blackfin/mach-bf548/ints-priority.c
C
gpl-2.0
6,304
/* * /dev/lcd driver for Apple Network Servers. */ #include <linux/types.h> #include <linux/smp_lock.h> #include <linux/errno.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/fcntl.h> #include <linux/init.h> #include <linux/delay.h> #include <linux/fs.h> #include <asm/uaccess.h> #include <...
felixhaedicke/nst-kernel
src/drivers/macintosh/ans-lcd.c
C
gpl-2.0
3,847
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2019, The Linux Foundation. All rights reserved. */ #include <linux/kernel.h> #include <linux/bitops.h> #include <linux/err.h> #include <linux/platform_device.h> #include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/clk-pro...
mpe/powerpc
drivers/clk/qcom/mmcc-msm8998.c
C
gpl-2.0
77,649
/** * tpci200.c * * driver for the TEWS TPCI-200 device * * Copyright (C) 2009-2012 CERN (www.cern.ch) * Author: Nicolas Serafini, EIC2 SA * Author: Samuel Iglesias Gonsalvez <siglesias@igalia.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General...
AiJiaZone/linux-4.0
virt/drivers/ipack/carriers/tpci200.c
C
gpl-2.0
16,606
/* data-vote.c was generated by yup.py (yupp) 1.0c2 out of data-vote.yu-c *//** * \file data-vote.c (data-vote.yu-c) * \brief Data voting. * \author Vitaly Kravtsov (in4lio@gmail.com) * \copyright See the LICENSE file. */ #define LOGGING #define LINK_CONSOLE #define LINK_UT #define LINK_UT_UT #d...
in4lio/predict
source/app/data-vote.c
C
mit
2,093
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <math.h> // Rewriting from java, but doesn't exactly work yet.. int main(void){ int n, err, tmp; err = scanf("%d", &n); int ring[n]; int ans[n]; // construct the ring for (int i = 0; i < n; i++) { err = scanf("%...
rvrheenen/OpenKattis
C/kemija/kemija.c
C
mit
8,588
// smpl /* 2‚‚̃eƒLƒXƒgƒtƒ@ƒCƒ‹‚̍s’PˆÊ‚Ì‘Šˆá‚ð•\ަ‚·‚éB SabunTextFile.exe [/I] [/L o—͐§ŒÀ] [”äŠr‘Ώۃtƒ@ƒCƒ‹_1 ”äŠr‘Ώۃtƒ@ƒCƒ‹_2] */ #include "C:\Factory\Common\all.h" static int IgnoreCaseFlag; static uint Limit; static void Main2(char *file1, char *file2) { autoList_t *lines1 = readLines(file1); autoLis...
stackprobe/Factory
Tools/SabunTextFile.c
C
mit
974
/* * Singly Circular Linked List (Sentinel Pointing to last node). */ #include <stdio.h> #include <stdlib.h> struct node // Constructing a structure as node. { int data; struct node *next; }; typedef struct node Node; // Using "struct node" as "Node". Node *s; // Sentinel. //Creates a node on the heap and ...
RohithSingirikonda/Data-Structures-and-Algorithms
linked-lists/singly_circular_linked_list.c
C
mit
4,233
#include <stdio.h> #include <stdlib.h> #include "main.h" int main() { int i; for (i = start; i >= end; --i) putn(i); return EXIT_SUCCESS; }
lcabrini/prog-c
countdown/main.c
C
mit
163
/******************** * CircularDoublyLinkedList.c * * This file is part of libvoids which is licensed under the 2-Clause BSD License * * Copyright (c) 2015, 2016, 2017 George Koskeridis <georgekoskerid@outlook.com> * All rights reserved. ****************************************************************...
Gikoskos/Data_Structures_and_Algorithms_in_C
lib/src/CircularDoublyLinkedList.c
C
mit
7,836
/** * @file * Implementation of raw protocol PCBs for low-level handling of * different types of protocols besides (or overriding) those * already available in lwIP.\n * See also @ref raw_raw * * @defgroup raw_raw RAW * @ingroup callbackstyle_api * Implementation of raw protocol PCBs for low-level handling of...
ohilab/libohiboard
middleware/lwip_2.0.3/src/core/raw.c
C
mit
15,634
/**************************************************************************** * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy ...
isaacs/node-ncurses
deps/ncurses/ncurses/trace/lib_tracemse.c
C
mit
4,994
#include "text.h" #include <stdio.h> #include <stdlib.h> #include "math.h" int length(char* str) /* Output length of any given string How?: END OF LINE ('\0') */ { int i = 0; int count = 0; while (*(str+i) != '\0') { count++; i++; } return count; } void zeroStr(char* str, i...
AbhijayS/Code
USACO/C/Contest/2016-17/Competition 3 2017/text.c
C
mit
4,797
/* swc: libswc/xdg_surface.c * * Copyright (c) 2014 Michael Forney * * 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 u...
sulami/swc
libswc/xdg_surface.c
C
mit
10,499
// Copyright (c) 2016 Steven Bacon // // 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, publish, ...
sbaconbits/car_battery_logger
code/menu.c
C
mit
10,467
#include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <assert.h> #include <errno.h> #include "cst_string.h" #include "cst_wave.h" #include "cst_audio.h" #include <alsa/asoundlib.h> /*static char *pcm_dev_name = "hw:0,0"; */ static char *pcm_dev_name ="default"; static inline void print_pcm_state(...
syb0rg/Tritium
src/audio/au_alsa.c
C
mit
7,117
#include <pthread.h> #include <stdio.h> pthread_t thread_ids[99]; char *words_array[99]; void printMessage(int j) { if(words_array[j+1] != NULL) { pthread_join(thread_ids[j+1], NULL); } printf("%s\n", words_array[j]); } int main() { char message[100]; scanf ("%[^\n]%*c", message)...
Skar0/itr
tp5_3.c
C
mit
1,136
#include "doublylinkedlist.h" #include <stdlib.h> node *createnode(data_t value) { node *head = malloc(sizeof(node)); head->prev = NULL; head->next = NULL; head->value = value; return head; } void iterate(node *head, void (*iterator)(const void *value)) { node *current = head; while (...
kevinhury/cs-algo
Doubly Linked List/doublylinkedlist.c
C
mit
2,606
/* * hcsr04.c * * Created: 10-11-2017 15:25:54 * Author: melle */ #define F_CPU 16E6 #include <stdint.h> #include <avr/interrupt.h> #include <util/delay.h> #include <stdio.h> #include "hcsr04.h" #include "../io/io.h" volatile uint16_t counter = 0; // 16 bit counter value volatile uint8_t echoFlag = BEGIN; // fl...
MelleDijkstra/ShutterSystem
ShutterSystem/hcsr04/hcsr04.c
C
mit
3,082
#include <stdlib.h> #include <stdint.h> #include <string.h> #include "org_bitcoin_NativeSecp256k1.h" #include "include/secp256k1.h" #include "include/secp256k1_ecdh.h" #include "include/secp256k1_recovery.h" #include "include/secp256k1_schnorr.h" SECP256K1_API jlong JNICALL Java_org_bitcoin_NativeSecp256k1_secp256k1_1...
ftrader-bitcoinabc/bitcoin-abc
src/secp256k1/src/java/org_bitcoin_NativeSecp256k1.c
C
mit
14,003
#include "libft.h" void ft_lmod_ptr(t_lpr *stc) { void (*ft_lmod[6])(t_lpr*); const char *lmod_tab[6] = {"hh", "h", "l", "ll", "j", "z"}; int i; (ft_lmod)[0] = &ft_hh; (ft_lmod)[1] = &ft_h; (ft_lmod)[2] = &ft_l; (ft_lmod)[3] = &ft_ll; (ft_lmod)[4] = &ft_j; (ft_lmod)[5] = &ft_z; i = 0; while (ft_strcmp(...
martinsireau/libft
src/ft_lmod.c
C
mit
1,164
/* Copyright (c) Mark J. Kilgard, 1994, 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. */ #include <stdlib.h> #include <string.h> #include <stdio.h> #if !defined(_WIN32) #i...
sim9108/SDKS
LibGlut/src/glut_init.c
C
mit
10,328
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
aethaniel/micropython
py/objlist.c
C
mit
20,022
int main() { char input_string[105]; scanf("%[^\n]", input_string); printf("Hello, World.\n"); printf("%s\n", input_string); return 0; }
nikidimitrow/hackerrank.com
30DaysOfCodeChallenges/Day0-HelloWorld.c
C
mit
197
/** * @file lan8740.c * @brief LAN8740 Ethernet PHY transceiver * * @section License * * Copyright (C) 2010-2015 Oryx Embedded SARL. All rights reserved. * * This file is part of CycloneTCP Open. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General ...
Velleman/VM204-Firmware
cyclone_tcp/drivers/lan8740.c
C
mit
7,309
#include <klingklang/device.h> extern const kk_device_backend_t device_backend; int kk_device_init (kk_device_t **dev) { kk_device_t *result; result = calloc (1, device_backend.size); if (result == NULL) goto error; if (pthread_mutex_init (&result->mutex, NULL) != 0) goto error; if (device_backen...
slyrz/klingklang
src/device.c
C
mit
1,331
#include <stdio.h> #include "mpi.h" #define RUNS 100000 #define MAX_SIZE_EXPONENT 20 int main (int argc, char** argv) { int retval, np, myid; double start, end; if (argc<2) { fprintf(stderr, "Usage: %s mode [0=latency, 1=bandwidth]\n\n", argv[0]); return 1; } /* Initialize MPI */ if( (r...
HavocInferno/parallel_S17
Task 4_1 - Ping Pong/src/pingpong_Paul.c
C
mit
2,908
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2009 Sam Lantinga 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 ...
balaam/dinodeck
lib/sdl/src/audio/macosx/SDL_coreaudio.c
C
mit
9,511
/** * MIT License * * Copyright (c) 2017 Petre Pircalabu * * 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,...
petrepircalabu/uart_test
src/waitbreak.c
C
mit
3,947
#include "link.h" #include "headers/loader.h" #include "headers/nlist.h" #include "headers/reloc.h" #include "headers/arm_reloc.h" #include <ctype.h> #include "read_dyld_info.h" static addr_t lookup_symbol_or_do_stuff(lookupsym_t lookup_sym, void *context, const char *name, bool weak, bool userland) { addr_t sym =...
saelo/ios-kern-utils
lib/binary/mach-o/link.c
C
mit
18,088
#include "librethinkdb.h" #include "query_language.pb-c.h" #include "query_language.pb-c.c" int main() { // connect to the rethinkdb server (addr, port, milliseconds_timeout) struct rethinkdb_connection *r = rethinkdb_init("127.0.0.1", 28015, 1000); // create a db (returns 0 on success) rethinkdb_create_...
vicgc/recognise
src/statsD-rethinkDB/librethinkdb/example.c
C
mit
925
//////////////////////////////////////////////////////////////////////////////////////////////////////// // // checkBTLinkConnected // // Utility function to check whether Bluetooth link is set up. It should be manually set up before // launching this program. [You can also set it up within an application program; ther...
dlacres/GeekMyBot
RobotC/BT_ReceiveV2.c
C
mit
2,618
/***** includes *****/ #include "lfds700_freelist_internal.h" /****************************************************************************/ void lfds700_freelist_init_valid_on_current_logical_core( struct lfds700_freelist_state *fs, void *user_state ) { LFDS700_PAL_ASSERT( fs != NULL ); LFDS700_PAL_ASSERT( (l...
mojmir-svoboda/BlackBoxTT
3rd_party/liblfds7.0.0/liblfds700/src/lfds700_freelist/lfds700_freelist_init.c
C
mit
696
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_console_popen_53b.c Label Definition File: CWE78_OS_Command_Injection.one_string.label.xml Template File: sources-sink-53b.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: console Read input from the cons...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s06/CWE78_OS_Command_Injection__wchar_t_console_popen_53b.c
C
mit
1,827
#include "GlobalDef.h" #include "Datsun.h" #include "Datsun_Database.h" #include "Generic_App.h" #include "CAN_App.h" #include "CAN.h" #include "VehicleID.h" #include "YearID.h" /************************************************************************************ * CAN Message Format: {config bits,ide,r...
Darkstarxt/HDAR
ele/hdar-code/example/New folder/Bypass/App/Nissan/Russia/Datsun/Datsun_Database.c
C
mit
3,111
/******************************************************************************* * * Module Name: dbexec - debugger control method execution * ******************************************************************************/ /****************************************************************************** * * 1. Cop...
solocle/ChaiOS
ACPICA/source/components/debugger/dbexec.c
C
mit
27,867
#include <string.h> void* memmove(void* destination, const void* source, size_t bytes) { unsigned char* dst = (unsigned char*) destination; const unsigned char* src = (const unsigned char*) source; if (dst < src) { for (size_t i = 0; i < bytes; i++) { dst[i] = src[i]; } } else { for (size_t i = bytes...
miklhh/os4
src/libc/string/memmove.c
C
mit
393
/*numPass=5, numTotal=5 Verdict:ACCEPTED, Visibility:1, Input:"4 34 13 42 14 2 13 42", ExpOutput:"YES ", Output:"YES" Verdict:ACCEPTED, Visibility:1, Input:"6 1 2 3 4 5 6 3 3 2 1", ExpOutput:"NO ", Output:"NO" Verdict:ACCEPTED, Visibility:1, Input:"4 1 3 6 1 2 1 6", ExpOutput:"NO ", Output:"NO" Verdict:ACCEPTED, Visibi...
jyi/ITSP
dataset/Lab-6/2933/280141_correct.c
C
mit
1,080
#include <stdio.h> int main(int argc, const char *argv[]){ int numbers[4] = {0}; char name[6] = {'a'}; //print them out raw printf("numbers: %d %d %d %d\n", numbers[0], numbers[1], numbers[2], numbers[3]); printf("name each: %c %c %c %c\n", name[0], name[1], name[2], name[3]); printf("name...
shadyproject/learn
learn-the-hard-way/c/ex9.c
C
mit
1,082
#include "pillowtalk_impl.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <curl/curl.h> #include <curl/types.h> #include <curl/easy.h> #include <yajl/yajl_gen.h> #include <yajl/yajl_parse.h> #ifdef PT_HAVE_YAJL_VERSION #include <yajl/yajl_version.h> #endif #include <assert.h> #include "bsd_qu...
jubos/pillowtalk
src/pillowtalk_impl.c
C
mit
26,414
/* src/psp/psp-video-bitmap.c: Bitmapped background graphics handling for PSP video module Copyright 2009-2010 Andrew Church This file is part of Yabause. Yabause is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
superusercode/RTC3
Real-Time Corruptor/BizHawk_RTC/yabause/src/psp/psp-video-bitmap.c
C
mit
11,786
#include "SDL_gpu.h" #include "SDL_gpu_RendererImpl.h" #include <string.h> #define CHECK_RENDERER() \ GPU_Renderer* renderer = GPU_GetCurrentRenderer(); \ if(renderer == NULL) \ return; #define CHECK_RENDERER_1(ret) \ GPU_Renderer* renderer = GPU_GetCurrentRenderer(); \ if(renderer == NULL) \ return ret; fl...
ReemHA/unknottheplot
graphicsproject/sdl-gpu-master/src/SDL_gpu_shapes.c
C
mit
4,388
/* ** new_button.c for new_button in /home/caron/igraph/generaytacer/source/gtk/gtk_fuction ** ** Made by Caron Thomas ** Login <caron_t@epitech.net> ** ** Started on Mon May 6 17:12:33 2013 Caron Thomas ** Last update Sun Jun 2 23:12:57 2013 Caron Thomas */ #include <gtk/gtk.h> #include <stdlib.h> GtkWidget *...
kassisdion/Raytracer
source/gtk/gtk_fuction/new_button.c
C
mit
1,155
/** * \file * \brief fish - The Barrelfish shell */ /* * Copyright (c) 2007, 2008, 2009, 2010, 2011, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Haldeneggst...
daleooo/barrelfish
usr/fish/fish_arm.c
C
mit
33,404
/* ヘッダファイルのインクルード */ #include <stdio.h> /* 標準入出力 */ /* main関数の定義 */ int main(void){ /* 変数の宣言 */ FILE *fp; /* ファイルポインタfp */ int i; /* ループ用変数i */ char buf[819200]; /* サイズ819200のchar型配列バッファbuf. */ /* 高水準入出力関数で使われるバッファサイズを出力 */ printf("BUFSIZ = %d\n", BUFSIZ); /* printfでBUFSIZの値を出力. */ /* ファイルtest_2.txtを開...
bg1bgst333/Sample
unixsyscall/read/read/src/read/fread_2.c
C
mit
1,226
/* Original code by Ben Croston modified for Ruby by Nick Lowery (github.com/clockvapor) Copyright (c) 2014-2016 Nick Lowery Copyright (c) 2013-2016 Ben Croston 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...
iohzrd/rpi_gpio
ext/rpi_gpio/cpuinfo.c
C
mit
7,732
/* $Id$ */ /** * Symmetrizes matrix A: A := .5 * (A+A`) * diag(A) remains unchanged * Antisymmetrizes matrix A: A := .5 * (A-A`) * copied from ga_symmetrize, A+A' replaced by A-A' * */ #include "ga.h" #include "macdecls.h" /** \ingroup util_ga @{ */ void FATR gai_subtr(int *lo, int *hi, void *a, void...
rangsimanketkaew/NWChem
src/util/ga_asymmetr.c
C
mit
2,553
#include <avr/io.h> #include <util/delay.h> #include <math.h> //Mind: //for my gcc version //EEMPE = EEMWE //EEWE = EEPE void EEPROM_write(unsigned char ucAddress, unsigned char ucData) { /* Wait for completion of previous write */ while(EECR & (1<<EEWE)); /* Set Programming mode */ EECR = (0<<EEPM1)|(0>>EEPM0); ...
Oneidavar/chainof13A
main.c
C
mit
2,676
#include "heap.h" /* Based on the pseudo-code in CLRS Introduction to Algorithms book. */ Heap new_heap(unsigned int size){ // creates heap[size+1] first node keeps heap information Heap h = calloc(size + 1, sizeof(Hnode)); h[0].id = size; h[0].val = 0; return h; } void free_heap(Heap h){ ...
ai-ku/dist
heap.c
C
mit
1,999
#ifndef _POSIX_C_SOURCE # define _POSIX_C_SOURCE 200809L #endif #include <stdlib.h> #include <string.h> #include <stdio.h> #include "flibs/compiler.h" #include "flibs/fdlist.h" #include "fev_tmsvc_modules.h" typedef struct tm_single_linked_data { fdlist* timer_list; fdlist* backup_list; } tm_sl_data; stati...
finaldie/final_libs
fev/fev_tmsvc_sl_mod.c
C
mit
3,998
#include <sys/types.h> #include <sys/stat.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> int main(int argc, char * argv[]){ int pipe=open("fifo",O_RDONLY); int log=open("log",O_WRONLY|O_CREAT|O_TRUNC,0666); char buf; while(1){ while(read(pipe,&buf,1)){ write(log,&buf,1); } } return 1; ...
rgllm/uminho
02/SO/guioes/g06/g02s.c
C
mit
321
#include <stdio.h> #include "shift_cipher.h" int main() { char msg[80]; while (fgets(msg, 80, stdin)) { shift_cipher(msg); printf("%s", msg); } return 0; }
WomenWhoCode/CProgrammingCurriculum
solutions/code_organization/cipher_project/message_hider.c
C
mit
173
#include "libui_box.h" #define WIDGET uiBox($field(self, control)) static libui_box *init(uiBox *widget) { libui_box *self = $alloc(); $field(self, control) = uiControl(widget); return self; } $method libui_box *self_new_vertical(void) { return init(uiNewVerticalBox()); } $method libui_box *self_new_horizont...
let-def/goo
examples/libui/libui_box.c
C
mit
774
/******************************************************************************** * Copyright (c) 2016-2019 Advanced Micro Devices, 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 de...
GPUOpen-ProfessionalCompute-Tools/clARMOR
tests/good_image_cl1_1/test_good_image_cl1_1.c
C
mit
11,117
#undef _DEBUG #undef _CHECKED #undef NDEBUG #define NDEBUG #define PFX zlxnir #include "noinline_nodebug.inc"
icostin/zlx
libsrc/memalloc/noinline_release.c
C
mit
112
/* pngrtran.c - transforms the data in a row for PNG readers * * Last changed in libpng 1.6.19 [November 12, 2015] * Copyright (c) 1998-2015 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) * * This...
pierrefourgeaud/CodeHero
vendor/libpng/pngrtran.c
C
mit
173,407
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */ /* * Copyright (c) 2010 Havoc Pennington * * 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...
havocp/hwf
test/lib/test-runner-shutdown.c
C
mit
7,485
/* * LZO1X Compressor from MiniLZO * * Copyright (C) 1996-2005 Markus F.X.J. Oberhumer <markus@oberhumer.com> * * The full LZO package can be found at: * http://www.oberhumer.com/opensource/lzo/ * * Changed for kernel use by: * Nitin Gupta <nitingupta910@gmail.com> * Richard Purdie <rpurdie@openedhand....
pi3orama/Snitchaser
src/lzo/lzo1x_compress.c
C
mit
4,277
//======================================================================== // GLFW - An OpenGL library // Platform: X11 (Unix) // API version: 3.0 // WWW: http://www.glfw.org/ //------------------------------------------------------------------------ // Copyright (c) 2002-2006 Marcus Geelnard // Copyright (c...
emoon/wrui
src/dear_imgui/external/glfw/src/linux/x11_monitor.c
C
mit
11,429
/* * Copyright (c) 2022 Pedro Falcato * This file is part of Onyx, and is released under the terms of the MIT License * check LICENSE at the root directory for more information * * SPDX-License-Identifier: MIT */ void arm64_map_address() {}
heatd/Onyx
kernel/arch/arm64/early_mmu.c
C
mit
248
#include <stdio.h> #include <stdlib.h> #include <dlfcn.h> #define EXEC_ONCE_TU_NAME "voba" #define EXEC_ONCE_DEPENDS {"voba.module"} #include <voba/value.h> ///@todo clean up this messy dependency. #include "../voba_builtin/sys/sys.h" static voba_value_t get_argv(int argc, char * argv[]) { voba_value_t * p = (voba_...
wcy123/voba_compiler
voba.c
C
mit
1,001
#include <string.h> #include <strings.h> #include "sway/commands.h" #include "sway/config.h" #include "sway/input/input-manager.h" #include "log.h" struct cmd_results *input_cmd_click_method(int argc, char **argv) { struct cmd_results *error = NULL; if ((error = checkarg(argc, "click_method", EXPECTED_AT_LEAST, 1)))...
taiyu-len/sway
sway/commands/input/click_method.c
C
mit
1,243
/* graphene-simd4x4f.c * * Copyright © 2014 Emmanuele Bassi * * 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, co...
criptych/graphene
src/graphene-simd4x4f.c
C
mit
2,501
// // ___FILENAME___ // ___PACKAGENAME___ // // Created by ___FULLUSERNAME___ on ___DATE___. //___COPYRIGHT___ // #include <AddressBook/ABAddressBookC.h> #include <AddressBook/ABActionsC.h> #include <CoreFoundation/CoreFoundation.h> CFStringRef actionProperty(void); CFStringRef actionTitle(ABPersonRef person, CFSt...
149393437/Templates
Templates/Project Templates/Mac/System Plug-in/Address Book Action Plug-in.xctemplate/___PACKAGENAMEASIDENTIFIER___-main.c
C
mit
1,258
/* ** $Id: lzio.c,v 1.36 2014/11/02 19:19:04 roberto Exp $ ** Buffered streams ** See Copyright Notice in lua.h */ #define lzio_c #define LUA_CORE #include "lprefix.h" #include <string.h> #include "lua.h" #include "llimits.h" #include "lmem.h" #include "lstate.h" #include "lzio.h" int luaZ_fill (ZIO *z) { siz...
CaringLabs/MediaFramework
support/lua/lzio.c
C
mit
1,643
// ext/ru_ne_ne/ruby_module_ru_ne_ne.c #include "ruby_module_ru_ne_ne.h" //////////////////////////////////////////////////////////////////////////////////////////////////// // To hold the module object, plus child Module and Class items volatile VALUE RuNeNe = Qnil; volatile VALUE RuNeNe_Transfer = Qnil; volatile ...
neilslater/ru_ne_ne
ext/ru_ne_ne/ruby_module_ru_ne_ne.c
C
mit
11,630
#include "org_stardust_NativeSecp256k1.h" #include "include/secp256k1.h" JNIEXPORT jint JNICALL Java_org_stardust_NativeSecp256k1_secp256k1_1ecdsa_1verify (JNIEnv* env, jclass classObject, jobject byteBufferObject) { unsigned char* data = (unsigned char*) (*env)->GetDirectBufferAddress(env, byteBufferObject); int ...
ctwiz/stardust
src/secp256k1/src/java/org_bitcoin_NativeSecp256k1.c
C
mit
776
#include <stdio.h> #include <stdlib.h> #include <stdint.h> int main(void) { FILE * fp; fp = fopen("MostRecent", "w"); time_t t; srand((unsigned) time(&t)); int i; for(i = 0; i < 65536; i++) { int random = rand() % 1000; fprintf(fp, "%d ", random); } fclose(fp); }
TPeterW/PeteSort
Generator/numGen.c
C
mit
285
/* * Generic EZUSB firmware * * Copyright (c) 2008 the handy-eda-utils developer(s). * Distributed under the MIT License. * (See accompanying file COPYING or copy at * http://www.opensource.org/licenses/mit-license.php.) * * Last modified on May 2007. */ /* gcc -O2 -Wall -o ep2out ep2out.c */ #include <stdio...
hhonda68/handy-eda-utils
ezusb-firmware/host/ep2out.c
C
mit
5,257
/* Copyright (c) 2002-2015 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "hostpid.h" #include <unistd.h> #include <netdb.h> #define HOSTNAME_DISALLOWED_CHARS "/\r\n\t" const char *my_hostname = NULL; const char *my_pid = NULL; static char *my_hostname_dup = NULL; static char *my_domai...
dscho/dovecot
src/lib/hostpid.c
C
mit
1,539
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2017 Scott Shawcroft for Adafruit Industries, 2020 Radomir * Dopieralski * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated docu...
adafruit/micropython
ports/atmel-samd/boards/pewpew_m4/board.c
C
mit
5,487
/* * * TINKER Source Code * * * [2009] - [2013] Samuel Steven Truscott * All Rights Reserved. */ #include "utils/util_strlen.h" uint32_t util_strlen(const char * const string, const uint32_t max) { uint32_t c = 0; if (string) { while (string[c] != '\0' && c < max) { c++; } } return c; }
sam-truscott/tinker-kernel
kernel/src/kernel/c/utils/util_strlen.c
C
mit
313
/* * Copyright (C) 2014 Glyptodon LLC * * 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, publi...
flangelo/guacamole-server
src/guacd/proc.c
C
mit
14,663
/************************************************************** * FILE NAME: Code Number-11946.c * * PURPOSE: Solve of Uva problem. * * @author: Md. Arafat Hasan Jenin * EMAIL: * * DEVELOPMENT HISTORY: * Date Change Version Description * ----------------------------------------------...
AHJenin/acm-type-problems
UVa/AC/Code_Number-11946.c
C
mit
2,055
/* FreeRTOS V8.2.1 - Copyright (C) 2015 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the...
evrythng/evrythng-freertos-sdk
libs/FreeRTOSV8.2.1/FreeRTOS/Source/portable/RVDS/ARM_CA9/port.c
C
epl-1.0
21,966