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
/* LibTomCrypt, modular cryptographic library -- Tom St Denis * * LibTomCrypt is a library that provides various cryptographic * algorithms in a highly modular and flexible manner. * * The library is free for all purposes without any express * guarantee it works. */ /** @file ocb_done_encrypt.c OCB implem...
google/google-ctf
third_party/tomcrypt/src/encauth/ocb/ocb_done_encrypt.c
C
apache-2.0
1,349
// // saveBMP.cpp // glcrypto // // Created by Kirill Solntsev. // #include <stdio.h> #include "glcrypto_bmp.h" void saveBMP(const char *indirect, const glcrypto_BYTE *map, const glcrypto_BYTE *head) { FILE *f; int offset; int size; offset = (head[10] << 0) | (head[11] << 8) | (head[12] ...
lanit-tercom-school/grouplock
GroupLockCrypto/Sources/glcrypto_bmp_saving.c
C
apache-2.0
596
/* * Copyright 2014 LKC Technologies, Inc. * * 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...
edahlseng/fwup
src/fwfile.c
C
apache-2.0
5,180
/* Copyright 2014 Cloudbase Solutions Srl 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, sof...
cloudbase/openvswitch-hyperv-kernel
Driver/OID/OidPort.c
C
apache-2.0
9,301
/* $NetBSD: elf_open.c,v 1.2 2014/03/09 16:58:04 christos Exp $ */ /*- * Copyright (c) 2011 Joseph Koshy * 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 co...
execunix/vinos
external/bsd/elftoolchain/dist/libelf/elf_open.c
C
apache-2.0
2,183
adfdasfsdfsdfsdf
sajjadelastica/3G45
dsfsdf.c
C
apache-2.0
17
/** Test Z-axis clipping of a triangle */ #include <stdio.h> #include <stdlib.h> #include "glut_wrap.h" static GLboolean ztest = GL_FALSE; static void Reshape(int width, int height) { glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(-1.0, 1.0, -1.0, 1.0, 2.0,...
execunix/vinos
xsrc/external/mit/mesa-demos/dist/src/trivial/tri-z-clip.c
C
apache-2.0
1,407
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_tolower.c :+: :+: :+: ...
aljourda/fractol
libft/ft_tolower.c
C
apache-2.0
990
/* * The MIT License (MIT) * * Copyright (c) 2019 Ha Thach (tinyusb.org) * * 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...
google/myelin-acorn-electron-hardware
third_party/myelin-arduino-hardware/samd/cores/arduino/TinyUSB/Adafruit_TinyUSB_ArduinoCore/tinyusb/src/portable/nxp/lpc18_43/hcd_lpc18_43.c
C
apache-2.0
1,703
/*******************************************************/ /* "C" Language Integrated Production System */ /* */ /* CLIPS Version 6.40 01/06/16 */ /* */ /* ...
guitarpoet/php-clips
src/clips/parsefun.c
C
apache-2.0
13,761
/* $NetBSD: rcsclean.c,v 1.5 2006/03/26 22:15:21 christos Exp $ */ /* Clean up working files. */ /* Copyright 1991, 1992, 1993, 1994, 1995 Paul Eggert Distributed under license by the Free Software Foundation, Inc. This file is part of RCS. RCS is free software; you can redistribute it and/or modify it under th...
execunix/vinos
gnu/usr.bin/rcs/rcsclean/rcsclean.c
C
apache-2.0
7,042
/* ---------------------------------------------------------------------- * Project: CMSIS DSP Library * Title: arm_mult_q7.c * Description: Q7 vector multiplication * * $Date: 18. March 2019 * $Revision: V1.6.0 * * Target Processor: Cortex-M cores * -------------------------------------...
STMicroelectronics/cmsis_core
DSP/Source/BasicMathFunctions/arm_mult_q7.c
C
apache-2.0
3,454
/* flc.c -- 有趣的常量 */ #include <stdio.h> #define COLS 4 int sum2d(int ar[][COLS], int rows); int sum(int arr[], int n); int main(int argc, char const *argv[]) { int total1, total2, total3; int * pt1; int (*pt2)[COLS]; pt1 = (int [2]){10, 20}; pt2 = (int [2][COLS]){ {1,2,3,-9}, {4,5,6,-8}}; total1 = sum(pt1, 2);...
luisedware/Learning-C
CPrimerPlus/10/10.19/flc.c
C
apache-2.0
806
/* * options.c - shell options * * This file is part of zsh, the Z shell. * * Copyright (c) 1992-1997 Paul Falstad * All rights reserved. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and to distribute mo...
cedarli/zsh
src/Src/options.c
C
apache-2.0
27,610
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Duda I/O * -------- * Copyright (C) 2012-2014, Eduardo Silva P. <edsiper@gmail.com>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ...
monkey/duda
packages/sqlite/duda_package.c
C
apache-2.0
1,904
/* This file was generated by upbc (the upb compiler) from the input * file: * * envoy/config/listener/v3/listener.proto * * Do not edit -- your changes will be discarded when the file is * regenerated. */ #include <stddef.h> #include "upb/msg.h" #include "envoy/config/listener/v3/listener.upb.h" #include "e...
firebase/grpc
src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c
C
apache-2.0
4,049
/* Copyright Joyent, Inc. and other Node contributors. 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 without restriction, including without limitation the * righ...
mosaic-cloud/mosaic-distribution-dependencies
dependencies/nodejs/0.8.22/deps/uv/src/win/tcp.c
C
apache-2.0
41,593
#define _POSIX_C_SOURCE 200809L #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/time.h> #include <limits.h> #include <linux/fs.h> #include <sys/ioctl.h> #include <malloc.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <math.h>...
dr-who/stutools
spit/utils.c
C
apache-2.0
29,189
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2018-12-5 SummerGift first version */ #include "board.h" #ifdef BSP_USING_ON_CHIP_FLASH #include "drv_config.h" #include "drv_flash.h" #if defined(PKG...
wolfgangz2013/rt-thread
bsp/stm32/libraries/HAL_Drivers/drv_flash/drv_flash_f7.c
C
apache-2.0
9,626
/*************************************************************************/ /* */ /* Language Technologies Institute */ /* Carnegie Mellon University */ /* ...
saikrishnarallabandi/Festival-Speech-Synthesis-System
flite/lang/cmu_iq_lang/cmu_iq_lang.c
C
apache-2.0
4,340
/* * Copyright 2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may * require a specific license from the United States Government. * It is the responsibility of any person or organization contemplating * export to obtai...
gerritjvv/cryptoplayground
kerberos/kdc/src/krb5-1.16/src/lib/gssapi/mechglue/g_inq_cred_oid.c
C
apache-2.0
3,601
/* * TIME.C * * (c) Copyright 2006, vbmacher * */ #include <rtl.h> unsigned long time() { unsigned long c=0; asm { push cx xor ah, ah int 1Ah mov word ptr [c], dx mov word ptr [c+2], cx } c %= 0x10007; c %= 0x444; c /= CLK_TCK; asm pop cx return c; }
vbmacher/qsOS
QSS/src/kernel/rtl/time.c
C
apache-2.0
298
/* * test handling of many texture maps * Also tests texture priority and residency. * * Brian Paul * August 2, 2000 */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <GL/glew.h> #include "glut_wrap.h" static GLint NumTextures = 20; static GLuint *Te...
execunix/vinos
xsrc/external/mit/mesa-demos/dist/src/tests/manytex.c
C
apache-2.0
10,355
/****************************************************************************** * * Copyright (C) 2012-2013 Broadcom Corporation * * 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: * ...
indashnet/InDashNet.Open.UN2000
android/external/libnfc-nci/halimpl/bcm2079x/hal/hal/nfc_hal_hci.c
C
apache-2.0
27,201
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
leoz/ImageMagick
MagickCore/compress.c
C
apache-2.0
40,174
#include <stdio.h> #include <stdlib.h> float media_t(FILE *arq); int main(void) { FILE *arq; arq = fopen("Notas.txt","r"); // abertura do arquivo if (arq == NULL) { printf("Erro na abertura do arquivo\n"); exit(1); } printf("O resultado é %.1f\n", media_t(arq)); fclose(arq); return 0; } flo...
EnriqueIzel2/trab_pca
trab_pca/2_trabalho/q01.c
C
apache-2.0
878
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib Authors. * * 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/strided/base/binary/src/kk_f.c
C
apache-2.0
2,241
/* test echo server */ /* ** Copyright (c) 2007, DNA Pty Ltd and contributors ** ** 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 rig...
openhoodie/hoodie
examples/tuxtest/src/main/cxx/tuxtest.c
C
apache-2.0
1,869
/* Warning: This file has been automatically generated from subversion.pl */ /* Global declaration */ #include <apr_general.h> #include <svn_client.h> #include <svn_pools.h> /* apr_initialize/0 */ void c_apr_initialize(void) { apr_initialize(); } /* apr_terminate/0 */ void c_apr_terminate(void) { apr_terminat...
leuschel/ecce
www/CiaoDE/ciao/contrib/subversion/subversion_inline.c
C
apache-2.0
1,077
/* * Copyright (c) 2013-2014 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Kernel fatal error handler * * This module provides the _NanoFatalErrorHandler() routine. */ #include <toolchain.h> #include <linker/sections.h> #include <kernel.h> #include <kernel_structs....
aceofall/zephyr-iotos
arch/x86/core/fatal.c
C
apache-2.0
10,626
/* Copyright 2013-present Facebook, Inc. * Licensed under the Apache License, Version 2.0 */ #include "watchman.h" #include "thirdparty/wildmatch/wildmatch.h" struct wildmatch_data { char *pattern; bool caseless; bool wholename; bool noescape; bool includedotfiles; }; W_CAP_REG("wildmatch") W_CAP_REG("wil...
dhruvsinghal/watchman
query/match.c
C
apache-2.0
2,798
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib Authors. * * 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/blas/ext/base/ssort2hp/src/ssort2hp.c
C
apache-2.0
4,647
/* $Id: tif_jpeg.c,v 1.111 2012-07-06 18:48:04 bfriesen Exp $ */ /* * Copyright (c) 1994-1997 Sam Leffler * Copyright (c) 1994-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * tha...
blairdgeo/node-gdal
deps/libgdal/gdal/frmts/gtiff/libtiff/tif_jpeg.c
C
apache-2.0
67,723
#include <stdlib.h> #include <smop/base.h> #include <smop/nagc.h> #include <smop/s0native.h> #include <smop/util.h> #include <smop/capture.h> SMOP__Object* SMOP__capture__RI; typedef struct capture_struct { SMOP__NAGC__Object__BASE int positional_count; SMOP__Object** positional; smop_util_hash* named; } cap...
gitpan/SMOP
capture/src/capture.c
C
artistic-2.0
5,054
#include <memory.h> #include <pixmap.h> void PixmapScramble_4_1(const PixmapT *pixmap) { if (pixmap->type == PM_CMAP4) { u_int *data = pixmap->pixels; short n = pixmap->width * pixmap->height / 8; register u_int m0 asm("d6") = 0xa5a5a5a5; register u_int m1 asm("d7") = 0x0a0a0a0a; /* [a0 a1 a2 a3...
cahirwpz/demoscene
lib/libgfx/PixmapScramble_4_1.c
C
artistic-2.0
486
/* * Copyright (c) 2002-2008 Hypertriton, Inc. <http://hypertriton.com/> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyrigh...
adsr/agar
gui/keymap_ascii.c
C
bsd-2-clause
7,917
/* * Copyright (C) 2012-2015, Juan Manuel Barrios <http://juan.cl/> * All rights reserved. * * This file is part of MultimediaTools. https://github.com/juanbarrios/multimedia_tools * MultimediaTools is made available under the terms of the BSD 2-Clause License. */ #include "mem_util.h" void* my_memory_alloc(int...
juanbarrios/multimedia_tools
myutils/myutils_lib/src/myutils/myutils_c/mem_util.c
C
bsd-2-clause
3,980
/*- * Copyright (c) 2004 Andre Oppermann, Internet Business Solutions AG * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyrigh...
dplbsd/netmap-ipfwjit
sys/netpfil/ipfw/ip_fw_pfil.c
C
bsd-2-clause
16,493
#include "PyAutoC.h" #define MAX_ARG_NUM 10 typedef struct { char* name; void* src_func; PyAutoCFunc ac_func; PyAutoType type_id; int num_args; PyAutoType arg_types[MAX_ARG_NUM]; } func_entry; static PyAutoHashtable* func_name_table; static PyAutoHashtable* func_ptr_table; void PyAutoFun...
orangeduck/PyAutoC
src/PyAutoFunction.c
C
bsd-2-clause
4,779
#include "ruby.h" #include "c_noyes.h" #include "r_noyes.h" VALUE cPowerSpectrum; static void _power_spectrum_free(void *p) { power_spectrum_free(p); } static VALUE t_init(VALUE self, VALUE args) { int len = RARRAY_LEN(args); int nfft = 256; if (len > 0) { nfft = NUM2INT(rb_ary_entry(args, 0)); } Po...
talkhouse/noyes
lib/cext/power_spectrum.c
C
bsd-2-clause
1,077
/// \file main_fields_micro.c /// \brief Main simulation file for averaging spatial correlations of the field variables, /// initializing field variables according to microcanonical ensemble statistics. // // Copyright (c) 2014, Christian B. Mendl // All rights reserved. // http://christian.mendl.net // // This program...
cmendl/hardpoint-systems
altern_mass/src/main_fields_micro.c
C
bsd-2-clause
8,938
/* * ss_double.c - Drop in "double" replacement for Single-Single * */ #include "ss_double_fromfloat.h" #include <math.h> /* * TYPE CONVERSIONS */ /* single-single (double wrapper) */ inline ss ss_init(){ /* initial ss */ ss retval; retval.num = 0.0; return retval; } inline ss num_num_to_ss(float hi,...
losalamos/HILO
2011release/QDA-MC/multinode/src/ss-dd/ss_double_fromfloat.c
C
bsd-2-clause
3,891
/* Copyright 2012 Dietrich Epp. This file is part of SGLib. SGLib is licensed under the terms of the 2-clause BSD license. For more information, see LICENSE.txt. */ #include <libpce/hashtable.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #if 0 #define debug(...) printf(__VA_...
depp/sglib
test/util/test_hashtable.c
C
bsd-2-clause
4,692
/* -------------------------------------------------------------------------- * Name: set-shape.c * Purpose: set_pointer_shape, restore_pointer_shape * ----------------------------------------------------------------------- */ #include <stddef.h> #include "oslib/os.h" #include "oslib/osbyte.h" #include "oslib/o...
dpt/PrivateEye
libs/appengine/wimp/pointer/set-shape.c
C
bsd-2-clause
1,559
/* { dg-do run } */ /* PR middle-end/31448, this used to ICE during expand because reduce_to_bit_field_precision was not ready to handle constants. */ /* { dg-require-effective-target int32plus } */ typedef struct _st { int iIndex : 24; int iIndex1 : 24; } st; st *next; void g(void) { st *next = 0; ...
alpine9000/BitOS
tests/gcc.c-torture/pr31448.c
C
bsd-2-clause
772
/***************************************************************************//** * @file system_efm32gg.c * @brief CMSIS Cortex-M3 System Layer for EFM32GG devices. * @version 5.2.2 ****************************************************************************** * # License * <b>Copyright 2017 Silicon Laboratories,...
AlexS409/efm32_temp_resive
CMSIS/EFM32GG/system_efm32gg.c
C
bsd-2-clause
12,953
/* { dg-do run } */ extern void abort(void); typedef long GLint; void aglChoosePixelFormat (const GLint *); void find (const int *alistp) { const int *blist; int list[32]; if (alistp) blist = alistp; else { list[3] = 42; blist = list; } aglChoosePixelFormat ((GLint *) blist); } void ...
alpine9000/BitOS
tests/gcc.c-torture/pr28778.c
C
bsd-2-clause
462
/* * Parallel implementation of matrix multiplication. */ #include <stdlib.h> #include <stdio.h> #include <pthread.h> #include "shared.h" #include "thread.h" pthread_barrier_t barrier; struct timeval phase2Start; struct timeval phase2End; int main(int argc, char *argv[]) { /* matrices */ int **A = NULL; int **B...
a-krebs/parallel-matrix
parallel.c
C
bsd-2-clause
3,330
#include "e.h" /* intercept elm_win operations so we talk directly to e_client */ #undef elm_win_add typedef struct _Elm_Win_Trap_Ctx { E_Client *client; E_Pointer *pointer; Eina_Bool centered : 1; Eina_Bool placed : 1; Eina_Bool internal_no_remember : 1; Eina_Bool inter...
FlorentRevest/Enlightenment
src/bin/e_win.c
C
bsd-2-clause
13,463
/* bdfdrivr.c FreeType font driver for bdf files Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by Francesco Zappa Nardelli 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 Soft...
dreamsxin/ultimatepp
bazaar/freetype/src/bdf/bdfdrivr.c
C
bsd-2-clause
24,120
/* * sophia database * sphia.org * * Copyright (c) Dmitry Simonenko * BSD License */ #include <libss.h> #include <libsf.h> #include <libsr.h> #include <libso.h> #include <libsv.h> #include <libsl.h> #include <libsd.h> #include <libsi.h> #include <libsx.h> #include <libsy.h> #include <libse.h> static int se_snap...
tarantool/sophia
sophia/environment/se_snapshot.c
C
bsd-2-clause
3,496
/** * @file * * @date May 12, 2020 * @author Anton Bondarev */ #include <stdint.h> #include <string.h> #include <embox/unit.h> #include <util/log.h> #include <drivers/usb/usb_defines.h> #include <drivers/usb/usb_desc.h> #include <drivers/usb/gadget/udc.h> #include <drivers/usb/gadget/gadget.h> #include <drivers/...
embox/embox
src/drivers/usb/gadget/rndis/f_rndis.c
C
bsd-2-clause
6,378
/* * Copyright (c) 2012-2015 Christian Hansen <chansen@cpan.org> * <https://github.com/chansen/c-dt> * 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 cod...
chansen/c-dt
dt_workday.c
C
bsd-2-clause
6,866
#include <stdio.h> int main() { int i, j; char a[10]; char b[10]; for (i = 0; i < 0x31337; i++); if (i == 0x31337) scanf("%9s", a); for (j = 0; j < 0xb3475; j++); if (j == 0xb3475) scanf("%9s", b); printf("You entered %s and %s!\n", a, b); }
Ruide/angr-dev
binaries/tests_src/longinit.c
C
bsd-2-clause
253
// RUN: jlang-cc -emit-pth %s -o %t && // RUN: jlang-cc -include-pth %t %s -E | grep 'file_to_include' | count 2 #include "file_to_include.h"
JianpingZeng/xcc
xcc/java/test/jlang/Preprocessor/include-pth.c
C
bsd-3-clause
142
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Thread management for memcached. */ #include "memcached.h" #include <assert.h> #include <stdio.h> #include <errno.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <pthread.h> #include <time.h> #include "memcached...
ryzhyk/memcached_liss
thread.c
C
bsd-3-clause
18,889
/* * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved * Copyright 2005 Nokia. All rights reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the Lice...
jens-maus/amissl
openssl/apps/s_server.c
C
bsd-3-clause
120,198
#include "compiler.h" // win‚Åidentify‚܂ł͎擾‚ɍs‚­‚ñ‚¾‚¯‚ǂȁc‚Á‚ÄAnex86‚à“¯‚¶‚© #if defined(SUPPORT_IDEIO) #include "dosio.h" #include "cpucore.h" #include "pccore.h" #include "iocore.h" #include "ideio.h" #include "atapicmd.h" #include "fdd/sxsi.h" #include "sound.h" #include "idebios.res" IDEIO ideio; st...
masaki-furuta/xnp2
src/cbus/ideio.c
C
bsd-3-clause
22,222
/*- * Copyright (c) 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the abov...
MarginC/kame
freebsd2/lib/libutil/pty.c
C
bsd-3-clause
3,912
/* JUP_CurPosition * * Purpose: To read a cursor position from the Jupiter * J-Station Display Device * * Written by: Fred Burnette * Date: December 1989 * * Calling Sequence: * * STATUS = JUP_ReadCursor( parameters ) * * Parameter List: * * Unit: Display device unit number * Cursor: Cursor Numbe...
marrocamp/nasa-VICAR
vos/vrdi/source/jup/jup_readcursor.c
C
bsd-3-clause
700
#include <smaccm_sender.h> #include <stdio.h> void periodic_ping(uint32_t periodic_100_ms) { printf("sender: periodic dispatch received (%d). Writing to receiver \n", periodic_100_ms); test8__a_struct_impl test_data; test_data.field1 = 1.0; test_data.field2 = 2.0; printf("sender: sending test ...
juli1/smaccm-improvements
models/Trusted_Build_Test/test8/user_code/user_sender.c
C
bsd-3-clause
614
/* * Copyright (c) 2006-2009 by Cisco Systems, Inc. * All rights reserved. */ #include "test_vqec_utest_main.h" #include "test_vqec_utest_interposers.h" #include "../add-ons/include/CUnit/CUnit.h" #include "../add-ons/include/CUnit/Basic.h" #include "vqec_tuner.h" #include <assert.h> #include <netinet/igmp.h> #inc...
wmanley/cisco-vqe-client
eva/utest/test_vqec_utest_igmp.c
C
bsd-3-clause
9,543
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_listen_socket_popen_42.c Label Definition File: CWE78_OS_Command_Injection.one_string.label.xml Template File: sources-sink-42.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: listen_socket Read data usin...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s08/CWE78_OS_Command_Injection__wchar_t_listen_socket_popen_42.c
C
bsd-3-clause
5,937
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE758_Undefined_Behavior__char_malloc_use_08.c Label Definition File: CWE758_Undefined_Behavior.alloc.label.xml Template File: point-flaw-08.tmpl.c */ /* * @description * CWE: 758 Undefined Behavior * Sinks: malloc_use * GoodSink: Initialize then use data ...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE758_Undefined_Behavior/CWE758_Undefined_Behavior__char_malloc_use_08.c
C
bsd-3-clause
3,380
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/MultiLabelMarginCriterion.c" #else // TODO: improve error messages void THNN_(MultiLabelMarginCriterion_updateOutput)( THNNState *state, THTensor *input, THTensor *target, THTensor *output, THTensor *isTarget, ...
eriche2016/nn
lib/THNN/generic/MultiLabelMarginCriterion.c
C
bsd-3-clause
4,891
/* * $Id: stdlib_abort.c,v 1.5 2006-01-08 12:04:25 obarthel Exp $ * * :ts=4 * * Portable ISO 'C' (1994) runtime library for the Amiga computer * Copyright (c) 2002-2015 by Olaf Barthel <obarthel (at) gmx.net> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modif...
adtools/clib2
library/stdlib_abort.c
C
bsd-3-clause
2,289
/* * Copyright (c) 2003-2014 Apple Inc. All Rights Reserved. * * @APPLE_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 except in * c...
GaloisInc/hacrypto
src/C/Security-57031.40.6/SecurityTool/security.c
C
bsd-3-clause
34,451
/* Copyright 2020. Uecker Lab. University Medical Center Göttingen. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2018-2020 Sebastian Rosenzweig * 2020 Martin Uecker */ #include <stdbool.h> #include <complex.h> #include...
sidward/bart
src/bin.c
C
bsd-3-clause
10,022
/* Copyright (c) 2018, Raspberry Pi (Trading) Ltd. Copyright (c) 2013, Broadcom Europe Ltd Copyright (c) 2013, James Hughes All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source...
6by9/userland
host_applications/linux/apps/raspicam/RaspiStillYUV.c
C
bsd-3-clause
44,716
/* * Copyright (c) 2017 Cisco and/or its affiliates. * 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 applicabl...
wfnex/openbras
src/VPP/src/vnet/lisp-cp/one_cli.c
C
bsd-3-clause
49,391
/** * @file linux-lmsensors.c * @author Daniel Lucio * @author Joachim Protze * @author Heike Jagode * jagode@eecs.utk.edu * * @ingroup papi_components * * * LM_SENSORS component * * Tested version of lm_sensors: 3.1.1 * * @brief * This file has the source code for a component that en...
arm-hpc/papi
src/components/lmsensors/linux-lmsensors.c
C
bsd-3-clause
13,752
/* * Copyright (c) 2005, Daniel C. Newman <dan.newman@mtbaldy.us> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * + Redistributions of source code must retain the above co...
dcnewman/ha7netd
crc.c
C
bsd-3-clause
10,059
/***************************************************************************** Copyright (c) 2011, Intel Corp. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source cod...
jmfranck/pyspecdata
lapack-3.4.0/lapacke/src/lapacke_dtgsna_work.c
C
bsd-3-clause
6,700
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "adc.h" #include "adc_chip.h" #include "clock.h" #include "common.h" #include "console.h" #include "dma.h" #include "hooks.h" #include...
akappy7/ChromeOS_EC_LED_Diagnostics
chip/stm32/adc-stm32f0.c
C
bsd-3-clause
8,698
/* * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl> * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl> * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com> * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl> * All rights reserved. * * Redistribution and use in s...
Evervolv/android_external_strace
resource.c
C
bsd-3-clause
15,453
/* * Copyright © 2012 Collabora, Ltd. * * 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...
endlessm/chromium-browser
third_party/weston/src/tests/subsurface-test.c
C
bsd-3-clause
18,711
#include "minunit.h" #include <http11/http11_parser.h> #include <glob.h> #include <bstring.h> FILE *LOG_FILE = NULL; void debug_element_cb(void *data, const char *at, size_t length) { } void debug_field_cb(void *data, const char *field, size_t flen, const char *value, size_t vlen) { } http_parser setup_parser() { ...
bnoordhuis/mongrel2
tests/http11_tests.c
C
bsd-3-clause
2,895
/* * Copyright (c) 2003 NONAKA Kimihiro * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of cond...
masaki-furuta/xnp2
src/i386c/ia32/instructions/data_trans.c
C
bsd-3-clause
29,573
/* * Copyright (c) 2002 Mark Santcroos <marks@ripe.net> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
MarginC/kame
freebsd4/sys/netgraph/ng_device.c
C
bsd-3-clause
14,541
/* Copyright (c) 2005-2007, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of co...
wy182000/coredumper
src/linuxthreads.c
C
bsd-3-clause
24,529
/* * wavemon - a wireless network monitoring aplication * * Copyright (c) 2001-2002 Jan Morgenstern <jan@jm-music.de> * * wavemon 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...
aarif4/wireless_positioning_system
wps_ros/wavemon/info_scr.c
C
bsd-3-clause
17,188
/* $NetBSD: db_memrw.c,v 1.4.6.2 1999/04/12 21:27:04 pk Exp $ */ /* * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright *...
MarginC/kame
netbsd/sys/arch/i386/i386/db_memrw.c
C
bsd-3-clause
2,831
# include <stdio.h> # include <stdlib.h> # include <string.h> # include <math.h> /* fabs */ # include "xtables.h" # include "hstio.h" # include "stis.h" # include "calstis6.h" # include "hstcalerr.h" # include "stisdef.h" # include "stisdq.h" # include "stispht.h" # include "stistds.h" static int OpenSGeo (char *, ...
jhunkeler/hstcal
pkg/stis/calstis/cs6/do1dx.c
C
bsd-3-clause
76,096
/*- * Copyright (c) 1999-2002, 2007-2009 Robert N. M. Watson * Copyright (c) 2001-2005 Networks Associates Technology, Inc. * Copyright (c) 2006 SPARTA, Inc. * All rights reserved. * * This software was developed by Robert Watson for the TrustedBSD Project. * * This software was developed for the FreeBSD Projec...
dcui/FreeBSD-9.3_kernel
sys/security/mac_lomac/mac_lomac.c
C
bsd-3-clause
74,107
/* j0.c * * Bessel function of order zero * * * * SYNOPSIS: * * double x, y, j0(); * * y = j0( x ); * * * * DESCRIPTION: * * Returns Bessel function of order zero of the argument. * * The domain is divided into the intervals [0, 5] and * (5, infinity). In the first interval the following ration...
huard/scipy-work
scipy/special/cephes/j0.c
C
bsd-3-clause
12,968
/* * Glue Code for AVX assembler versions of Serpent Cipher * * Copyright (C) 2012 Johannes Goetzfried * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de> * * Copyright © 2011-2013 Jussi Kivilinna <jussi.kivilinna@iki.fi> * * This program is free software; you can redistribute it and/or modify * it und...
prasidh09/cse506
unionfs-3.10.y/arch/x86/crypto/serpent_avx_glue.c
C
gpl-2.0
17,319
/*- * Copyright (c) 2014 Andrew Turner * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condi...
TigerBSD/TigerBSD
FreeBSD/sys/arm64/arm64/trap.c
C
isc
9,674
/***********************************************/ // Author: Melvin Cabatuan // Date modified: September 16, 2015 // Description: Menu using while loop demo /**********************************************/ #include<stdio.h> #include<stdlib.h> #define PI 3.14159; void areaComputation(); void volumeCompu...
DeLaSalleUniversity-Manila/LBYEC72_AY_2015_16
Menu3.c
C
mit
3,291
/* * RFC 1115/1319 compliant MD2 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 redistribute i...
femtoio/femto-usb-blink-example
blinky/blinky/asf-3.21.0/thirdparty/polarssl/md2.c
C
mit
9,191
/* * $Id: test_index.c 46 2011-02-17 14:50:55Z kaori $ * * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium * Copyright (c) 2002-2014, Professor Benoit Macq * Copyright (c) 2010-2011, Kaori Hagihara * All rights reserved. * * Redistribution and use in source and binary forms, with or wit...
bluegum/PegDF
pkgs/openjpeg/src/bin/jpip/opj_jpip_test.c
C
mit
2,455
#include "DSGM.h" #include "DSGM_projectHelper.h" // User variables / declarations // Resources DSGM_Sound DSGM_Sounds[DSGM_SOUND_COUNT] = { }; DSGM_Background DSGM_Backgrounds[DSGM_BACKGROUND_COUNT] = { // Width and height must be the same for a large background, in this case it is 3584x3584 pixels DSGM_FORM_NIT...
cfwprpht/dsgmLib
examples/LargeBackground/source/project.c
C
mit
3,854
/* fcmp Copyright (c) 1998-2000 Theodore C. Belding University of Michigan Center for the Study of Complex Systems <mailto:Ted.Belding@umich.edu> <http://www-personal.umich.edu/~streak/> This file is part of the fcmp distribution. fcmp is free software; you can redistribute and modify it under the terms of th...
ToddFincannon/SDEverywhere
src/c/fcmp.c
C
mit
1,934
#define NDEBUG #include "dbg.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <glob.h> const size_t MAX_LINE = 1024; int list_files(glob_t *pglob) { char *line = calloc(MAX_LINE, 1); FILE *file = fopen(".logfind", "r"); int glob_flags = GLOB_TILDE; int i = 0; int rc = -1; ...
rodmachen/exercises
lcthw/ex26/logfind.5/logfind.c
C
mit
3,130
#include <x.h> #include <sandbox.h> enum { SANDBOX_VIDEO_FORMAT_ARGB = 0, SANDBOX_VIDEO_FORMAT_YUYV = 1, SANDBOX_VIDEO_FORMAT_UYVY = 2, SANDBOX_VIDEO_FORMAT_NV12 = 3, SANDBOX_VIDEO_FORMAT_NV21 = 4, SANDBOX_VIDEO_FORMAT_YU12 = 5, SANDBOX_VIDEO_FORMAT_YV12 = 6, SANDBOX_VIDEO_FORMAT_MJPG = 7, }; struct sandbox_c...
xboot/xboot
src/arch/x64/mach-sandbox/libsandbox/sandbox-cam.c
C
mit
6,410
/******************************************************************//** * @file main.c * @brief To interface Switch and use them to turn on and off LED and test Debouncing * @version v1.0 * @date Apr 16, 2015 * @author Bhavin R. Darji **********************************************************************/ ...
bhavindarji/STM32F4-Dev
Example Projects/ASK25/GPIO/Switch/Eg2/Src/main.c
C
mit
4,226
/* * Yamaha SMAF format * Copyright (c) 2005 Vidar Madsen * * 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 y...
fillest/rtmp_load
src/libav/libavformat/mmf.c
C
mit
8,761
#include <time.h> #ifdef __cplusplus extern "C" { #endif extern time_t __time (time_t* timer); #pragma weak time time_t time (time_t* timer) { return __time(timer); } #ifdef __cplusplus } #endif
kristapsk/resclib
libc/time/time.c
C
mit
203
/* crypto/ec/ec_cvt.c */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ /* ==================================================================== * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without *...
dismalion/oooii
Ouroboros/External/OpenSSL/openssl-1.0.0e/crypto/ec/ec_cvt.c
C
mit
4,753
/* atan example */ #include <stdio.h> /* printf */ #include <math.h> /* atan */ #define PI 3.14159265 int main () { double param, result; param = 1.0; result = atan (param) * 180 / PI; printf ("The arc tangent of %f is %.3f degrees\n", param, result ); return 0; }
tjyang/c2go
tests/math/atan.c
C
mit
287
/****************************************************************************** * * Module Name: exdebug - Support for stores to the AML Debug Object * *****************************************************************************/ /****************************************************************************** * ...
devlato/kolibrios-llvm
drivers/devman/acpica/executer/exdebug.c
C
mit
12,624