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 |
|---|---|---|---|---|---|
/* This file is automatically generated by genmodsrc.sh. DO NOT EDIT! */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2002,2007 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... | xxha/grub-1.98 | mod-keystatus.c | C | gpl-3.0 | 884 |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | tukusejssirs/eSpievatko | spievatko/espievatko/prtbl/srv/httpd-2.4.9/modules/proxy/mod_proxy_http.c | C | gpl-3.0 | 81,644 |
/*
* Copyright (c) 2011, Luca Barbato
*
* This file is part of Libav.
*
* Libav 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... | Ivnz/iFrameExtracotrWithFFMPEG | ffmpeg/libavformat/segment.c | C | gpl-3.0 | 28,559 |
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... | ClaudioNahmad/Servicio-Social | Parametros/CosmoMC/prerrequisitos/openmpi-2.0.2/ompi/mpi/c/group_difference.c | C | gpl-3.0 | 2,103 |
/*
* Copyright 2011 Emanuel Ey <emanuel.ey@gmail.com>
*
* This file is part of matOut.
*
* MatOut 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 3 of the License, or
* (at... | EyNuel/matOut | calcArraySize.c | C | gpl-3.0 | 5,393 |
/*---------------------------------------------------------------------------
* Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 - Emanuele Bovisio
*
* This file is part of Mulk.
*
* Mulk is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as publi... | dxq-git/mulk | lib/m_malloc.c | C | gpl-3.0 | 5,794 |
// libk/string/strlen.c
#include <stddef.h>
#include <string.h>
size_t strlen (const char *str) {
size_t len = 0;
while (str[len])
len++;
return len;
}
size_t strnlen (const char *str, size_t n) {
const void *memchr_result;
size_t len;
memchr_result = memchr (str, '\0', n);
if (!memchr_result)
len = n... | Izzette/izix | libk/string/strlen.c | C | gpl-3.0 | 416 |
/*
* Copyright (c) 2014, Patrik Jakobsson
* All Rights Reserved.
*
* 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 ... | williamfdevine/PrettyLinux | drivers/gpu/drm/gma500/blitter.c | C | gpl-3.0 | 1,435 |
/*
* Copyright (c) 2006-2012 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file ex... | p01arst0rm/decorum-linux | _resources/kernels/xnu-x86/osfmk/i386/vmx/vmx_cpu.c | C | gpl-3.0 | 12,271 |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee a... | ClaudioNahmad/Servicio-Social | Parametros/CosmoMC/prerrequisitos/openmpi-2.0.2/orte/mca/ess/tm/ess_tm_component.c | C | gpl-3.0 | 2,932 |
// Copyright (C) 2010, 2011, Steffen Knollmann
// Released under the terms of the GNU General Public License version 3.
// This file is part of `ginnungagap'.
/*--- Doxygen file description ------------------------------------------*/
/**
* @file ginnungagap/main.c
* @ingroup ginnungagapMain
* @brief Implements... | ginnungagapgroup/ginnungagap | src/ginnungagap/main.c | C | gpl-3.0 | 9,477 |
#include "tests.h"
static VOID Test_rectangle(
VOID
)
{
PH_RECTANGLE r1;
PH_RECTANGLE r2;
r1.Left = 0;
r1.Top = 0;
r1.Width = 1024;
r1.Height = 1024;
r2.Width = 100;
r2.Height = 100;
r2.Left = -10;
r2.Top = -10;
PhAdjustRectangleToBounds(&r2, &r1);
assert(r2.L... | xarly/ProcessHacker | tests/phlib-test/t_support.c | C | gpl-3.0 | 8,657 |
/** subass3d.c
*
* This file is part of Sub3dtool
*
* Sub3dtool is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Sub3dtool... | veracitynhd/sub3dtool | src/subass3d.c | C | gpl-3.0 | 6,285 |
/* *************************************
* Includes
* *************************************/
#include "Pad.h"
#include "System.h"
#include "Timer.h"
/* *************************************
* Defines
* *************************************/
#define PAD_ONE 0
#define PAD_TWO 1
#define PAD_CHEAT_TIMEOUT 20 // 2 u... | XaviDCR92/Airport | Source/Pad.c | C | gpl-3.0 | 11,108 |
// Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// See the LICENSE file
// Portions Copyright (c) Athena Dev Teams
#include "../common/core.h"
#include "../common/db.h"
#include "../common/malloc.h"
#include "../common/md5calc.h"
#include "../common/random.h"
#include "../common/showmsg.h"
#include "../com... | maxlora157/feliz | src/login/login.c | C | gpl-3.0 | 57,755 |
/*
Copyright (C) 2013 - 2016 CurlyMo
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
... | pilight/pilight | libs/pilight/lua_c/cast.c | C | gpl-3.0 | 3,759 |
/*
* GraphicBlock implementation.
*/
#include <InterViews/canvas.h>
#include <InterViews/painter.h>
#include <InterViews/perspective.h>
#include <InterViews/scene.h>
#include <InterViews/shape.h>
#include <InterViews/Graphic/base.h>
#include <InterViews/Graphic/grblock.h>
#include <InterViews/Graphic/util.h>
#includ... | axelmuhr/Helios-NG | cmds/public/IV2.5/src/libgraphic/grblock.c | C | gpl-3.0 | 9,393 |
/*
===========================================================================
Wolfenstein: Enemy Territory GPL Source Code
Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company.
This file is part of the Wolfenstein: Enemy Territory GPL Source Code (Wolf ET Source Code).
Wolf ET Source Code is free soft... | morsik/warpig | src/cgame/cg_marks.c | C | gpl-3.0 | 11,685 |
/*
* capture on two chameleons, one colour, one mono
* based on libdc1394 example code
*
* Andrew Tridgell, October 2011
*
* 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
... | CanberraUAV/cuav | capturescripts/chameleon/chameleon_util.c | C | gpl-3.0 | 15,550 |
/*
This fragment should be added to the file niiter.c of chilespice.
There should be a similar fragment already in the chilespice repository, but
without the printouts to the file namesChile.txt. This code should replace
that older fragment.
What this fragment does, is add the capability for chiles... | Xycedev/Xyce | utils/CS_names.c | C | gpl-3.0 | 1,344 |
/* Userspace key control operations
*
* Copyright (C) 2004-5 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.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 Foun... | danialbehzadi/Nokia-RM-1013-2.0.0.11 | kernel/security/keys/keyctl.c | C | gpl-3.0 | 40,139 |
/*
This file is part of LS² - the Localization Simulation Engine of FU Berlin.
Copyright 2011-2013 Heiko Will, Marcel Kyas, Thomas Hillebrandt,
Stefan Adler, Malte Rohde, Jonathan Gunthermann
LS² is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as... | wi77/LS2 | src/algorithm/md_minmax_abs_algorithm.c | C | gpl-3.0 | 5,604 |
#include <dlfcn.h>
#include <elfutils/libebl.h>
#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <libelf.h>
#include <stdio.h>
#include <nlist.h>
#include <stdlib.h>
#include <unistd.h>
typedef struct GElf_SymX {
GElf_Sym sym;
Elf32_Word xndx;
char *where;
} GElf_SymX;
int main(int argc, char *argv[]... | vathpela/secret-octo-shame | dltest.c | C | gpl-3.0 | 2,852 |
/* radare - LGPL - Copyright 2009-2016 - nibble, pancake */
#include <r_lib.h>
#include <r_types.h>
#include <r_anal.h>
#include <r_util.h>
#include "udis86/types.h"
#include "udis86/extern.h"
#include "esil.h"
static st64 getval(ud_operand_t *op);
// XXX Copypasta from udis
#define UD_REG_TAB_SIZE (sizeof (ud_reg_t... | ghostbar/radare2.deb | libr/anal/p/anal_x86_udis.c | C | gpl-3.0 | 19,569 |
/*
** $Id: listmodel.c 13331 2010-08-25 10:16:50Z houhuihua $
**
** listmodel.c: List data model.
**
** Copyright (C) 2004 ~ 2008 Feynman Software.
**
** All rights reserved by Feynman Software.
**
** Current maintainer: Yan Xiaowei
**
** Create date: 2004/10/09
*/
#include <stdio.h>
#include <stdlib.h>
#include <stri... | shuntianxia/libminigui-gpl-3.0.12 | src/control/listmodel.c | C | gpl-3.0 | 14,493 |
//////////////////////////////////////////////////////////////////////////////
//Copyright 2008
// Andrew Gacek, Steven Holte, Gopalan Nadathur, Xiaochu Qi, Zach Snow
//////////////////////////////////////////////////////////////////////////////
// This file is part of Teyjus. ... | jpraher/teyjus | source/loader/code.c | C | gpl-3.0 | 6,267 |
/*
* xmonad-statusbar-applet/src/applet.c
*
* Copyright (C) 2011 Stephen Drodge
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) a... | sjdrodge/xmonad-statusbar-applet | src/applet.c | C | gpl-3.0 | 4,923 |
/* downdate.c
*
* Copyright (C) 2008,2009 Attila Axt
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This... | axt/isvd | test/downdate.c | C | gpl-3.0 | 1,882 |
/*
* FIPS-197 compliant AES implementation
*
* Copyright (C) 2006-2009, Paul Bakker <polarssl_maintainer at polarssl.org>
* All rights reserved.
*
* Joined copyright on original XySSL code with: Christophe Devine
*
* This program is free software; you can redistribute it and/or modify
* it under the term... | Nitrokey/nitrokey-storage-firmware | src/OTP/aes.c | C | gpl-3.0 | 37,896 |
/*
* A simple X11 mousepos/state outputter. Helpful for debugging.
*
* @filename: X11.pointer.c
*
* @version: 0.0.1
*
* @date: 2013-03-04
*
* @description: a simple X11 mousepos/state outputter.
*
* Compile with: gcc X11.pointer.c -o X11.pointer -lX11
*
*/
#include <X11/Xlib.h>
#include <assert.h>
#includ... | plastboks/Mousing | sandbox/X11.pointer.c | C | gpl-3.0 | 1,732 |
/*
Authors:
Pavel Březina <pbrezina@redhat.com>
Copyright (C) 2013 Red Hat
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at you... | celestian/sssd | src/providers/ldap/sdap_refresh.c | C | gpl-3.0 | 8,628 |
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <util.h>
#include <anetlist/entities.h>
#include <anetlist/net.h>
#include <anetlist/primitives.h>
#include <anetlist/bels.h>
#include "transform.h"
static int get_primitive_index(struct anetlist_entity *e)
{
int len;
int index;
len = sizeof(an... | weidu/antares | antares-pack/transform.c | C | gpl-3.0 | 13,820 |
/* =========================================================================
fmq_client - FILEMQ Client
Copyright (c) the Contributors as noted in the AUTHORS file.
This file is part of FileMQ, a C implemenation of the protocol:
https://github.com/danriegsecker/filemq2. ... | danriegsecker/filemq2 | src/fmq_client.c | C | mpl-2.0 | 16,897 |
/* glpios08.c (clique cut generator) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
*
* Copyright (C) 2008, 2013 Andrew Makhorin, Department for Applied
* Informatics, Moscow Aviation Institute, Moscow, Russia. All rights
* rese... | hgourvest/node-glpk | src/glpk/glpios08.c | C | mpl-2.0 | 4,399 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#define TH_UNICODE
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include "th_char.h"
#define th_isa... | Yukarumya/Yukarum-Redfoxes | intl/lwbrk/rulebrk.c | C | mpl-2.0 | 8,085 |
/*---------------------------------------------------------------------------
unshrink.c version 1.21 23 Nov 95
Shrinking is basically a dynamic LZW algorithm with allowed code sizes of
up to 13 bits; in addition, there is provision for partial clearing of
leaf nodes. ... | joyent/sdcboot | freedos/source/install3/lib/unzip.old/unshrink.c | C | mpl-2.0 | 10,372 |
#define BCI_USE_MATRIX
#define BCI_MATRIX_O2
//#define BCI_HEAP_DEBUG
//#define BCI_BLOCK_DEBUG
//#define BCI_MATRIX_DEBUG
#include "..\..\BCI.h"
task main()
{
clearDebugStream();
heap_Init();
matrix m1, m2, m3;
matrix_Initialize(&m1, 5, 5);
matrix_Initialize(&m2, 5, 5);
matrix_Initialize(&m3, 5, 5);
fl... | VTOW/BCI | Modules/Example/matrixExample.c | C | agpl-3.0 | 1,348 |
/*************************************************************************\
* Copyright (C) Michael Kerrisk, 2016. *
* *
* This program is free software. You may use, modify, and redistribute it *
* under the term... | jetm/tlpi | mmap/t_remap_file_pages.c | C | agpl-3.0 | 2,473 |
/**
******************************************************************************
* @file CRYP/CRYP_AES_CCM/Src/stm32f4xx_it.c
* @author MCD Application Team
* @version V1.0.3
* @date 29-January-2016
* @brief Main Interrupt Service Routines.
* This file provides template for all ... | mariobarbareschi/stm32-compiler-docker | STM32Cube_FW_F4_V1.11.0/Projects/STM32469I_EVAL/Examples/CRYP/CRYP_AES_CCM/Src/stm32f4xx_it.c | C | agpl-3.0 | 5,581 |
#define LOGTAG "sjut...."
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <jni.h>
#include <sys/types.h>
#include <sys/stat.h>
//#define _GNU_SOURCE
#include <unistd.h>
#define NELEM(x) (sizeof (x)/sizeof (*(x)))
#include <math.h>
#inclu... | ParanoidSaberVoid/android_packages_apps_FMRadio | jni/jut/jut.c | C | agpl-3.0 | 3,016 |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|... | papyrussolution/OpenPapyrus | Src/OSF/CURL-7730/lib/parsedate.c | C | agpl-3.0 | 15,680 |
#include <stdio.h>
#include <utime.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <unistd.h>
#include <sys/types.h>
#include <setjmp.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <semaphore.h>
#define P_D(n) printf(#n ... | cxsjabc/basic | c/test/hello1.c | C | agpl-3.0 | 1,947 |
/*
* Copyright (C) 2019 by Sukchan Lee <acetcom@gmail.com>
*
* This file is part of Open5GS.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... | acetcom/nextepc | src/upf/gtp-path.c | C | agpl-3.0 | 20,597 |
#include "mupdf/fitz.h"
#include <jpeglib.h>
#include <setjmp.h>
typedef struct fz_dctd_s fz_dctd;
struct fz_dctd_s
{
fz_stream *chain;
fz_context *ctx;
int color_transform;
int init;
int stride;
int l2factor;
unsigned char *scanline;
unsigned char *rp, *wp;
struct jpeg_decompress_struct cinfo;
struct jpeg... | andyhan/mupdf | source/fitz/filter-dct.c | C | agpl-3.0 | 5,649 |
/* ----------------------------------------------------------------------
* Copyright (C) 2010-2013 ARM Limited. All rights reserved.
*
* $Date: 16. October 2013
* $Revision: V1.4.2
*
* Project: CMSIS DSP Library
* Title: arm_dot_prod_q31.c
*
* Description: Q31 dot pro... | jhausladen/esclide | cloud9workspace/XMCExamples/mbed_XMC4500_make_blinky/system/CMSIS/DSP_Lib/Source/BasicMathFunctions/arm_dot_prod_q31.c | C | agpl-3.0 | 5,001 |
/* zrpc: RPC database+server for Zentific
* Copyright (C) 2007, 2008, 2009, 2010, 2011 Zentific LLC and AUTHORS
*
* All rights reserved.
* Use is subject to license terms.
*
* Please visit http://zentific.com for news and updates
*
* This library is free software; you can redistribute it and/or
* modify it und... | zmike/ezrpc | src/servlets/functions/functions-debug.c | C | lgpl-2.1 | 1,341 |
/*
* The Spread Toolkit.
*
* The contents of this file are subject to the Spread Open-Source
* License, Version 1.0 (the ``License''); you may not use
* this file except in compliance with the License. You may obtain a
* copy of the License at:
*
* http://www.spread.org/license/
*
* or in the file ``lic... | Srdjan/timok.rbr | ExtLibs/Spread/Deamon/spread-src-3.17.3/s.c | C | lgpl-2.1 | 4,724 |
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... | prajnashi/ffmpeg | libavcodec/ppc/check_altivec.c | C | lgpl-2.1 | 2,415 |
/*
Copyright (C) 2021 Albin Ahlbäck
This file is part of FLINT.
FLINT is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option) ... | wbhart/flint2 | ulong_extras/gcd.c | C | lgpl-2.1 | 553 |
/*
* Copyright (C) 2010 Realtek Semiconductor Corp.
* All Rights Reserved.
*
* This program is the proprietary software of Realtek Semiconductor
* Corporation and/or its licensors, and only be used, duplicated,
* modified or distributed under the authorized license from Realtek.
*
* ANY USE OF THE SOFTWARE OTEHR THAN A... | stanxii/wr1004sjl | apps/rtl8306e/mdcmdio.c | C | lgpl-2.1 | 2,638 |
/*
* Copyright (C) 2011 Igalia S.L.
* Copyright (C) 2011 Intel Corporation.
*
* Contact: Iago Toral Quiroga <itoral@igalia.com>
*
* Authors: Lionel Landwerlin <lionel.g.landwerlin@linux.intel.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Ge... | MathieuDuponchelle/grilo-plugins | src/bliptv/grl-bliptv.c | C | lgpl-2.1 | 16,559 |
/*
* BRLTTY - A background process providing access to the console screen (when in
* text mode) for a blind person using a refreshable braille display.
*
* Copyright (C) 1995-2022 by The BRLTTY Developers.
*
* BRLTTY comes with ABSOLUTELY NO WARRANTY.
*
* This is free software, placed under the terms o... | brltty/brltty | Programs/system_windows.c | C | lgpl-2.1 | 21,867 |
/*
* Copyright (c) 1983-2013 Trevor Wishart and Composers Desktop Project Ltd
* http://www.trevorwishart.co.uk
* http://www.composersdesktop.com
*
This file is part of the CDP System.
The CDP System is free software; you can redistribute it
and/or modify it under the terms of the GNU Lesser General Publ... | ComposersDesktop/CDP7 | dev/synth/main.c | C | lgpl-2.1 | 9,381 |
/* PexRTMPServer
* Copyright (C) 2019 Pexip
* @author: Havard Graff <havard@pexip.com>
* @author: John-Mark Bell <jmb@pexip.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation... | pexip/pexrtmpserver | utils/ssl.c | C | lgpl-2.1 | 11,972 |
/* sound.c */
#include <mus-config.h>
#if USE_SND
#include "snd.h"
#endif
#include <math.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <stdarg.h>
#if (defined(HAVE_LIBC_H) && (!defined(HAVE_UNISTD_H)))
#includ... | zh794390558/resample | sndlib-20/sound.c | C | lgpl-2.1 | 34,207 |
/* gtkplotcanvas - gtkplot canvas widget for gtk+
* Copyright 1999-2001 Adrian E. Feiguin <feiguin@ifir.edu.ar>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version ... | deweerdt/TSP | external/gtk-1.2/gtk/gtkplotcanvas.c | C | lgpl-2.1 | 94,708 |
/*
* This file is part of Cockpit.
*
* Copyright (C) 2014 Red Hat, Inc.
*
* Cockpit 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 l... | cockpituous/cockpit | src/bridge/cockpitpackages.c | C | lgpl-2.1 | 46,183 |
/*
* ext-dns: a framework to build DNS solutions
* Copyright (C) 2020 Advanced Software Production Line, S.L.
*
* 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 ... | ASPLes/ext-dns | src/ext-dns-support.c | C | lgpl-2.1 | 10,633 |
/* Copyright (C) 2011 by Valentin Ochs
*
* 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... | mingodad/tinycc | tccqsort.c | C | lgpl-2.1 | 6,164 |
//----------------------------------------------------------------------------
// ZetaScale
// Copyright (c) 2016, SanDisk Corp. and/or all its affiliates.
//
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published b... | SanDisk-Open-Source/zetascale | sdfmsg/oldtests/fcnl_multiptl_sequential_lib1.c | C | lgpl-2.1 | 11,032 |
#include <stdio.h>
int main(void)
{
int count, sum;
count = 0;
sum = 0;
while (count++ < 20)
{
sum = sum + count;
printf("sum = %d, count =%d\n", sum, count);
}
printf("sum = %d\n", sum);
return 0;
}
| wcnnbdk1/hello_world | CLearning/CPrimerPlus/chap05/addemup.c | C | lgpl-2.1 | 243 |
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
#include <Elementary.h>
#include "elm_suite.h"
START_TEST (elm_atspi_role_get)
{
Evas_Object *win, *glview;
Elm_Atspi_Role role;
elm_init(1, NULL);
win = elm_win_add(NULL, "glview", ELM_WIN_BASIC... | tasn/elementary | src/tests/elm_test_glview.c | C | lgpl-2.1 | 646 |
/*****************************************************************************
* freetype.c : Put text on the video, using freetype2
*****************************************************************************
* Copyright (C) 2002 - 2015 VLC authors and VideoLAN
* $Id$
*
* Authors: Sigmund Augdal Helberg <dnumgi... | xkfz007/vlc | modules/text_renderer/freetype/platform_fonts.c | C | lgpl-2.1 | 18,044 |
/* GdkPixbuf library - Main loading interface.
*
* Copyright (C) 1999 The Free Software Foundation
*
* Authors: Miguel de Icaza <miguel@gnu.org>
* Federico Mena-Quintero <federico@gimp.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser G... | GNOME/gdk-pixbuf | gdk-pixbuf/gdk-pixbuf-io.c | C | lgpl-2.1 | 116,568 |
// =============================================
// crt1.c
#include <stdlib.h>
// For ExitProcess
#include <windows.h>
#define __UNKNOWN_APP 0
#define __CONSOLE_APP 1
#define __GUI_APP 2
void __set_app_type(int);
void _controlfp(unsigned a, unsigned b);
typedef struct
{
int newmode;
} _startupinfo;
... | leeduhem/tinycc | win32/lib/crt1.c | C | lgpl-2.1 | 1,055 |
//
// File: %s-mold.c
// Summary: "value to string conversion"
// Section: strings
// Project: "Rebol 3 Interpreter and Run-time (Ren-C branch)"
// Homepage: https://github.com/metaeducation/ren-c/
//
//=////////////////////////////////////////////////////////////////////////=//
//
// Copyright 2012 REBOL Technolo... | metaeducation/ren-c | src/core/s-mold.c | C | lgpl-3.0 | 22,635 |
/* $Id: blast_parameters.c 504861 2016-06-20 15:45:40Z boratyng $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Governme... | kyungtaekLIM/PSI-BLASTexB | src/ncbi-blast-2.5.0+/c++/src/algo/blast/core/blast_parameters.c | C | lgpl-3.0 | 41,508 |
/*
* Copyright (C) 2011-2017 goblinhack@gmail.com
*
* See the LICENSE file for license.
*/
#include "main.h"
#include "thing.h"
#include "wid_game_map.h"
#include "time_util.h"
#include "math_util.h"
#include "color.h"
#include "level.h"
void thing_reached_teleport (levelp level,
thin... | goblinhack/adventurine | src/thing_teleport.c | C | lgpl-3.0 | 3,082 |
// Created file "Lib\src\Uuid\i_mshtml"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4, b5... | Frankie-PellesC/fSDK | Lib/src/Uuid/i_mshtml00000064.c | C | lgpl-3.0 | 456 |
/******************************************************************************
* *
* File: cdecl.c *
* Author: Alison Chaiken <alison@she-devel.com> *
* Created: Sun May 4 21:37:27 CEST 2014 *
* Contents: cdecl is my answer to Peter van der Linden's *
* ... | chaiken/util-scripts | cdecl.c | C | lgpl-3.0 | 12,347 |
// Created file "Lib\src\strmiids\strmiids"
typedef struct _GUID
{
unsigned long Data1;
unsigned short Data2;
unsigned short Data3;
unsigned char Data4[8];
} GUID;
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
extern const GUID name = { l, w1, w2, { b1, b2, b3, b4,... | Frankie-PellesC/fSDK | Lib/src/strmiids/strmiids0000006E.c | C | lgpl-3.0 | 454 |
/* tolua: funcitons to convert to C types
** Support code for Lua bindings.
** Written by Waldemar Celes
** TeCGraf/PUC-Rio
** Apr 2003
** $Id: $
*/
/* This code is free software; you can redistribute it and/or modify it.
** The software provided hereunder is on an "as is" basis, and
** the author has no obligation to... | htbegin/pyftk | script_binding/lua/tolua_to.c | C | lgpl-3.0 | 3,528 |
/*
* ipp.c
*
* Copyright (C) 2009-2011 by ipoque GmbH
* Copyright (C) 2011-13 - ntop.org
*
* This file is part of nDPI, an open source deep packet inspection
* library based on the OpenDPI and PACE technology by ipoque GmbH
*
* nDPI is free software: you can redistribute it and/or modify
* it under the terms ... | xdutaotao/nDPI | src/lib/protocols/ipp.c | C | lgpl-3.0 | 4,267 |
#include <BOSBOOT.h>
#include <i386/memory/physical.h>
#include <i386/cpu/i686.h>
#include <taskmanagement.h>
int kmain(BootInfo_p BOOTINF);
int kmain(BootInfo_p BOOTINF)
{
#ifdef DEBUG
DEBUG_printf("BOS v. 0.0.4\t%s\tCompiled at %s on %s Line %i\tFunction \"%s\"\n", __FILE__, __TIME__, __DATE__, (__LINE__ - 3), __f... | basicfreak/BOS | 0.0.4/KERNEL/SRC/kmain.c | C | unlicense | 3,532 |
int count;
double score; | Bladefidz/algorithm | scope/use_extern2.c | C | unlicense | 24 |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int read_setun_char (char c)
{
switch (c) {
case '0':
return 0;
case '1':
return 1;
case '$':
return -1;
default:
fprintf (stderr, "offending character: ... | intelfx/mipt-informatics | course1-2/1-number5/setun.c | C | unlicense | 2,175 |
// vi:nu:et:sts=4 ts=4 sw=4
/*
* Generated 02/18/2020 11:52:42
*/
// All code under test must be linked into the Unit Test bundle
// Test Macros:
// TINYTEST_ASSERT(condition)
// TINYTEST_ASSERT_MSG(condition,msg)
// TINYTEST_EQUAL(expected, actual)
// TINYTEST_EQUAL_MSG(expecte... | 2kranki/libCmn | tests/U16Matrix_test.c | C | unlicense | 28,498 |
#include "Arduino.h"
void pinMode(cbPIO_Pin pin, cbPIO_Port port, cbPIO_Mode mode) {
cbPIO_open(port, pin, NULL, mode, cbPIO_LOW);
}
void digitalWrite(cbPIO_Pin pin, cbPIO_Port port, cbPIO_Value state) {
cbPIO_write(port, pin, state);
}
cbPIO_Value digitalRead(cbPIO_Pin pin, cbPIO_Port port) {
retu... | StudioSophisti/NFCtoBLE | Firmware/Source/Arduino.c | C | apache-2.0 | 968 |
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "W7500x_wztoe.h"
#include "W7500x_gpio.h"
#include "W7500x_board.h"
#include "socket.h"
#include "seg.h"
#include "timerHandler.h"
#include "uartHandler.h"
#include "gpioHandler.h"
/* Private define ---------------------------------------------------... | Wiznet/W7500x-Serial-to-Ethernet-device | Firmware_Projects_uVision5/Projects/S2E_App/src/Serial_to_Ethernet/seg.c | C | apache-2.0 | 44,814 |
/*
_____ _ _
| __ \(_) (_)
| | | |_ _ __ _ _ __ __ _
| | | | | '_ \| | '_ \ / _` |
| |__| | | | | | | | | | (_| |
... | utkusen/dining-philosophers | philutku2.c | C | apache-2.0 | 6,794 |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*
BEST-intraHNCA 1H-15N-13CA experiment
set f2coef='1 0 -1 0 0 0 1 0... | OpenVnmrJ/OpenVnmrJ | src/biopack/psglib/best_ihncaP.c | C | apache-2.0 | 9,565 |
#include "terminal.h"
#include "multiboot.h"
#include "pic.h"
#include "keyboard.h"
#include "frame_allocator.h"
#include "paging.h"
#include "kmalloc.h"
#include "exceptions.h"
#include "assert.h"
//Calling convention on x86-64 System V ABI
//rdi, rsi, rdx, rcx for ints
static void loop(void) {
for(int k = 0; k ... | RichardHScott/os_c | src/kernel.c | C | apache-2.0 | 2,209 |
/*
* Copyright (c) 2017, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at w... | GoogleChromeLabs/wasm-av1 | third_party/aom/aom_dsp/x86/masked_variance_intrin_ssse3.c | C | apache-2.0 | 48,362 |
/*
*
* This source file is part of ELINA (ETH LIbrary for Numerical Analysis).
* ELINA is Copyright © 2019 Department of Computer Science, ETH Zurich
* This software is distributed under GNU Lesser General Public License Version 3.0.
* For more information, see the ELINA project website at:
* http://elina.et... | eth-srl/OptOctagon | elina_poly/opt_pk_expandfold.c | C | apache-2.0 | 21,407 |
/*
* serial_buffer.c
*
* Created: 28/06/2012 20:21:47
* Author: Juan
*/
#include "serial_buffer.h"
// Used for Power-of-2 modulus arithmetic.
#define BUFFER_MASK (SB_BUFFER_SIZE - 1)
// Fast increment of an index value, modulus buffer size.
uint16_t increment_idx_mod(uint16_t* idx);
void sb_init(SerialBuffer... | j1elo/IronAHRS | src/avr/board/serial_buffer.c | C | apache-2.0 | 1,867 |
/*!The Treasure Box Library
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | tboox/tbox | src/tbox/libm/sin.c | C | apache-2.0 | 1,108 |
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* Video Redirection Virtual Channel - FFmpeg Decoder
*
* Copyright 2010-2011 Vic Lee
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... | awakecoding/FreeRDP | channels/tsmf/client/ffmpeg/tsmf_ffmpeg.c | C | apache-2.0 | 17,507 |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libcff.h"
static const char *const string_standard[391] = {
".notdef",
"space",
"exclam",
"quotedbl",
"numbersign",
"dollar",
"percent",
"ampersand",
"quoteright",
"parenleft",
"parenri... | caryll/otfcc | lib/libcff/cff-string.c | C | apache-2.0 | 6,651 |
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-12-10 Meco Man first version
*/
#include <Arduino.h>
#include <board.h>
#include "pins_arduino.h"
const pin_map_t pin_map_table[]=
{
/*
... | RT-Thread/rt-thread | bsp/stm32/stm32l475-atk-pandora/applications/arduino/pins_arduino.c | C | apache-2.0 | 1,363 |
/*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <string.h>
#include "sdkconfig.h"
#include "unity.h"
#include "driver/spi_master.h"
#include "driver/gpio.h"
#include "esp_lcd_panel_io.h"
#include "esp_lcd_panel_vendor.h"
#i... | espressif/esp-idf | components/esp_lcd/test_apps/spi_lcd/main/test_spi_lcd_panel.c | C | apache-2.0 | 7,090 |
/*
** ascii.c for tds in /home/fourri_l/Projects/lib/tds
**
** Made by Laurent Fourrier
** Login <fourri_l@epitech.net>
**
** Started on Thu Feb 27 10:28:33 2014 Laurent Fourrier
** Last update Thu Feb 27 10:48:54 2014 Laurent Fourrier
*/
#include <tutils.h>
void *tds_type_ascii(char *line)
{
return (utl_strcp... | Sorikairo/Raytracer | lib/tds/src/tds/types/ascii.c | C | apache-2.0 | 332 |
/**
* Copyright 2016 Qihoo 360
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | silkCut/phptrace | common/trace_comm.c | C | apache-2.0 | 5,467 |
#include "common.h"
#define X265_RDOQ_CHROMA 1 ///< use of RDOQ in chroma
int32_t inv_quant_scales[6] =
{
40,45,51,57,64,72
};
int32_t quant_scales[6] =
{
26214,23302,20560,18396,16384,14564
};
int32_t et_table[4] = {0,3,1,2};
const int16_t t4[4][4] =
{
{ 64, 64, 64, 64},
{ 83, 36,... | Rodeo314/Gitl265 | common/tr_quant.c | C | apache-2.0 | 126,707 |
/* Copyright 2013-2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | neelegup/skiboot | core/pci.c | C | apache-2.0 | 41,498 |
// Copyright 2015-2018 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | www220/esp-idf | components/driver/spi_slave.c | C | apache-2.0 | 20,028 |
/*
* Copyright (c) 2015 Kevin Wheatley <kevin.j.wheatley@gmail.com>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licens... | darlyhellen/oto | NDKFFmpeg/jni/ffmpeg/libavutil/color_utils-test.c | C | apache-2.0 | 1,557 |
/*
Copyright 2010-2013 SourceGear, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | glycerine/vj | src/veracity/src/cmd/sg_cmd_util.c | C | apache-2.0 | 20,715 |
/*
** Copyright 2014-2016 The Earlham Institute
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable la... | TGAC/grassroots-api | server/src/services/blast/src/blastx_service.c | C | apache-2.0 | 6,533 |
#include <stdio.h>
void noswap(int x, int y) {
int temp;
temp = x;
x = y;
y = temp;
}
void swap(int *px, int *py) {
int temp;
temp = *px;
*px = *py;
*py = temp;
}
int main() {
int a = 3, b = 7;
printf(" Before: a = %d, b = %d\n", a, b);
noswap(a, b);
printf("After noswap: a = %d, b = %d\n", a, b)... | imscs21/myuniv | 2학기/Introduction_to_System_Programming/silsupFile/slide7code/swap.c | C | apache-2.0 | 387 |
/******************************************************************
*
* Copyright 2015 Samsung Electronics All Rights Reserved.
*
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | guswns0528/TizenRT | external/iotivity/iotivity_1.1.0/resource/csdk/connectivity/src/adapter_util/pkix/cert.c | C | apache-2.0 | 5,410 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.