text stringlengths 3.12k 18.7k |
|---|
/*
* trimslice.c - TrimSlice machine ASoC driver
*
* Copyright (C) 2011 - CompuLab, Ltd.
* Author: <NAME> <<EMAIL>>
*
* Based on code copyright/by:
* Author: <NAME> <<EMAIL>>
* Copyright (C) 2010-2011 - NVIDIA, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms... |
#include <stdio.h>
#include <windef.h>
#define wcsdigit(w) (w >= 0x0030 && w <= 0x0039)
#define TRUE 1
#define FALSE 0
/* The ResType field of NewHeader identifies the resource type */
#define ICONTYPE 1
#define CURSORTYPE 2
/* Identifies the menu item template version number */
#define MENU... |
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <openssl/sha.h>
#include <openssl/rand.h>
#include <time.h>
#define SERVER_ADDR "127.0.0.1"
#define SERVER_PORT 8080
#define BUF_SIZE 32
void xor(unsigned char... |
/* getqav.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__14 = 14;
/* $Procedure GETQAV ( Compute/not-compute Q and AV ) */
/* Subroutine */ int getqav_(lo... |
/* $Id: avm_a1p.c,v 2.9.2.5 2004/01/24 20:47:19 keil Exp $
*
* low level stuff for the following AVM cards:
* A1 PCMCIA
* FRITZ!Card PCMCIA
* FRITZ!Card PCMCIA 2.0
*
* Author <NAME>
* Copyright by <NAME> <<EMAIL>>
*
* This software may be used and distributed according to the terms
* of the GNU ... |
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#include <sys/socket.h>
#include <sys/epoll.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#define MAX_EVENTS 1024 // 最大连接数(连接套接字的最大数量)
#define BUFLEN 128
#define SERV_PORT 8080 // 服... |
/*
* Copyright (c) 2006-2013 <NAME> and <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <getopt.... |
/*
* librdkafka - Apache Kafka C library
*
* Copyright (c) 2016, <NAME>
* 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 copyrig... |
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1998-2011. All Rights Reserved.
*
* The contents of this file are subject to the Erlang Public License,
* Version 1.1, (the "License"); you may not use this file except in
* compliance with the License. You should have received a copy of the
* Erlang Public Lice... |
# include <stdio.h>
# include <stdlib.h> /* calloc */
# include <string.h>
/* This section for EmptyGroup functions */
# if defined(VMS)
# include <stat.h>
# else
# include <sys/types.h>
# include <sys/stat.h>
# endif
#include "hstcal.h"
# include "hstio.h"
# include "xtables.h"
# include "trlbuf.h"
# include "acs.h... |
/*
macOS:
brew install glfw glew
clang `pkg-config --libs glfw3 glew` -framework OpenGL main.c -o main
./main
*/
// GLEW
//#define GLEW_STATIC
#include <GL/glew.h>
/** note for tcc
-------------------------------------------
#ifndef __glew_h__
#define __glew_h__
#define __GLEW_H__
#include <windows.h>
--------... |
/*!
\file cmdline_ndmetis.c
\brief Command-line argument parsing for ndmetis
\date 12/24/2008
\author George
\version\verbatim $Id: cmdline_ndmetis.c 13900 2013-03-24 15:27:07Z karypis $\endverbatim
*/
#include "metisbin.h"
/*-------------------------------------------------------------------
* Command-line option... |
#include "param.h"
//#include "systm.h"
#include "fs.h"
#include "conf.h"
#include "buf.h"
#include "inode.h"
#include "user.h"
struct inode inode[NINODE]; // refrence of all inodes
struct mount mount[NMOUNT]; // refrence of all inodes
/*
* iinit is called once (from main)
* very early in initialization.
* It rea... |
/*
* lmdb - Simple database to count FLEXlm licenses/features
* lmdb_cli.c
*
* Main program for CLI access to a FLEXlm license count database
*
*/
#include "lmconfig.h"
#include "fscanln.h"
#include "lmdb.h"
#include "lmlog.h"
#include "util_fns.h"
//
extern char **environ;
//
static const char *flexlm_fea... |
#include <stdio.h>
#include "fodt.h"
int fputc_unlocked(int c, FILE *stream);
int fputs_unlocked(const char *s, FILE *stream);
int fgetc_unlocked(FILE *stream);
char c2s[2] = {0, 0};
char buffer[65536];
char * text_buffer = buffer;
inline int is_special(char c) {
if ((c == '!') || (c == '?') || (c == ':') || (c == ... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Transmit and receive data in UART RS485 mode.
* This sample code needs to work with UART_RS485_Slave.
*
* SPDX-License-Identifier: Apache-2.0
* @copyright (C) 2016 Nuvoton Te... |
//
// Copyright 2021 <NAME> <<EMAIL>>
//
// 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, publis... |
/* P U T M A T . C
* BRL-CAD
*
* Copyright (c) 2008-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library 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... |
/**************************************************************************
*
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* 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, incl... |
/*----------------------------------------------------------------------------
* CMSIS-RTOS - RTX
*----------------------------------------------------------------------------
* Name: RT_HAL_CM.H
* Purpose: Hardware Abstraction Layer for Cortex-M definitions
* Rev.: V4.79
*------------... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 <NAME>
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 2 of the License, or (at your option) a... |
/*
* 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 ma... |
/*
* (C) Copyright 2002
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
* <NAME> <<EMAIL>>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* publishe... |
/* The MIT License (MIT)
*
* Copyright (c) 2014 - 2019, <NAME>
* http://www.blue-andi.de
* <EMAIL>
*
* 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, inclu... |
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... |
/*
* Copyright (c) 2009 Nicira Networks.
*
* 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 ... |
/*
* markdown: convert a single markdown document into html
*/
/*
* Copyright (C) 2007 <NAME>.
* The redistribution terms are provided in the COPYRIGHT file that must
* be distributed with this source code.
*/
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <mkdio.h>
#include <errno.h>
#includ... |
/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include <libmctp.h>
#include <libmctp-alloc.h>
#ifdef NDEBUG
#undef NDEBUG
#endif
#define TEST_EID 8
#define TEST_TARGET_EID 9
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
/* Placeholder t... |
/*
*
* Copyright (c) 2011 - 2015
* University of Houston System and UT-Battelle, LLC.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* o Redistributions of source code must... |
/*
* Copyright (c) 2011-2020 <NAME>
* 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 conditions and ... |
/******************************************************************************
*
* Copyright © International Business Machines Corp., 2007, 2008, 2009
*
* 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 Fr... |
#ifdef LINUX
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
/* for realpath() */
#ifndef __USE_BSD
#define __USE_BSD
#endif
#endif /* LINUX */
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/param.h>
#include <ctype.h>
#include <sys/stat.h>
#include <unistd.h>
#include <l... |
//
// AED, January 2022
//
// Solution of the second practical assignement (multi-ordered tree)
//
// Place your student numbers and names here
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "AED_2021_A02.h"
// MAX_NAME_SIZE
// the custom tree node structure
//
// we want to maintain three ord... |
/******************************************************************************
** File: bsp_ut.c
**
**
** This is governed by the NASA Open Source Agreement and may be used,
** distributed and modified only pursuant to the terms of that agreement.
**
** Copyright (c) 2004-2015, United States government... |
/*
LUFA Library
Copyright (C) <NAME>, 2016.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
Copyright 2016 <NAME> (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is her... |
/* $OpenBSD: worms.c,v 1.20 2011/04/25 13:30:07 millert Exp $ */
/*
* Copyright (c) 1980, 1993
* 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... |
/* Tests some drawing primitives.
*/
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_color.h>
#include <allegro5/allegro_primitives.h>
#include <stdio.h>
#include <stdarg.h>
#include "common.c"
struct Example
{
ALLEGRO_FONT *font;
... |
/*
BASS plugins example
Copyright (c) 2005-2021 Un4seen Developments Ltd.
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <regex.h>
#include <glob.h>
#include "bass.h"
#define UIFILE "plugins.ui"
GtkBuilder *builder;
GtkWidget *win;
GtkWidget *filesel;
DWORD chan; // c... |
/*
* Author: <NAME>
* Date: Dec 12, 2014
*
* Tic Tac Toe (2 Player)
* -- This game allows 2 human players to play
* -- tic tac toe against each other.
*
* Made for and tested on Linux & Unix systems.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char board[3][3];
char player1 = 'X';
cha... |
/* crypto/dso/dso_err.c */
/* ====================================================================
* Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... |
/*
* Copyright (c) 2011 The Chromium OS Authors.
* See file CREDITS for list of people who contributed to this
* project.
*
* 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 ... |
/*
* This file and its contents are licensed under the Apache License 2.0.
* Please see the included NOTICE for copyright information and
* LICENSE-APACHE for a copy of the license.
*/
#include <postgres.h>
#include <utils/jsonb.h>
#include <utils/numeric.h>
#include "export.h"
#include "hypercube.h"
#include "dim... |
/* Copyright 2017 <NAME> (Wilba)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distribute... |
/*
* Copyright (C) 2011-2016 Free Software Foundation, Inc.
* Copyright (C) 2016 Red Hat, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* The GnuTLS 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 Sof... |
/*******************************************************************************************
*
* RE_PAIR [GLOBAL GAME JAM 2020]
*
* Let's find your perfect match!
* Ready for dating? Do you need some face tweaks? Choose wisely!
*
* This game has been created using raylib 3.0 (www.raylib.com)
* raylib is lice... |
/*
* fundamental constants
*/
#define NAMELEN 28 /* size of names */
#define NDBLOCK 6 /* number of direct blocks in Dentry */
#define MAXDAT 8192 /* max allowable data message */
#define NTLOCK 200 /* number of active file Tlocks */
typedef struct Fbuf Fbuf;
typedef struct Super1 Super1;
typedef struct Supe... |
/** @file mdev_rtc.c
*
* @brief This file provides mdev driver for RTC
*
* (C) Copyright 2008-2019 Marvell International Ltd. All Rights Reserved.
*
* MARVELL CONFIDENTIAL
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Marvell Inter... |
/*
* Copyright 2019-present Open Networking Foundation
* Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd.
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
#include <unistd.h>
#include <std... |
#include "cache.h"
#include "object.h"
#include "blob.h"
#include "tree.h"
#include "commit.h"
#include "tag.h"
static struct object **obj_hash;
static int nr_objs, obj_hash_size;
unsigned int get_max_object_index(void)
{
return obj_hash_size;
}
struct object *get_indexed_object(unsigned int idx)
{
return obj_hash... |
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/time.h>
#include "redismodule.h"
static RedisModuleString* pop_intervals_key = NULL;
static RedisModuleString* push_intervals_key = NULL;
static RedisModuleString* last_pop_times_key = NULL;
static RedisModuleString* last_push_times_key = NULL;... |
/*
* error.c logo error module dvb
*
* Copyright (C) 1993 by the Regents of the University of California
*
* 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 Sof... |
/*
* iplink_can.c CAN device support
*
* 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 op... |
/*
* Copyright (c) 2015,2016 <NAME>
*
* This file is part of vergifac
*
* vergifac 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 vers... |
/*
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2005, 2016 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
#include "bench.h"
static int usage(void);
static int b_put_secondary(DB *, const DBT *, const DBT *, DBT *);
int
b_put(int argc, char *argv[])
{
extern char *o... |
/*
* Implementation of the Microsoft Installer (msi.dll)
*
* Copyright 2004,2005 <NAME> for CodeWeavers
*
* 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 t... |
/*
* Copyright (c) 2006, 2007, 2008, 2009, 2010 QLogic Corporation.
* All rights reserved.
* Copyright (c) 2005, 2006 PathScale, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public Lice... |
/*
* Copyright (c) 2004-2005 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... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define GRID_SIZE 256
#define CELL_SIZE 1 // CELL_SIZE = 256 / GRID_SIZE
// Box-Muller transform
double gaussianNoise(double mu, double sigma)
{
static double v = 0, fac = 0;
static int phase = 0;
double S, Z, U1, U2, u;
// uses v and fac from p... |
/* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2012, <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
Th... |
#ifdef COMPILER_CLANG
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#else
#define _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include "./SlimEngine/core/types.h"
enum VertexAttributes {
Ve... |
/*
This program is hereby placed into the public domain.
Of course the program is provided without warranty of any kind.
Downloaded from http://www.lm-sensors.org/browser/i2c-tools/trunk/eepromer/eeprom.c
*/
#include <sys/ioctl.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include ... |
/*
* 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 ... |
#include "main.h"
// Ignore 'format' compiler warnings (for printf)
#pragma GCC diagnostic ignored "-Wformat"
uint32_t i,j;
// RAW temperature, pressure and humidity values
int32_t UT,UP,UH;
// Pressure in Q24.8 format
uint32_t press_q24_8;
// Humidity in Q22.10 format
uint32_t hum_q22_10;
// Human-readable... |
//
// MidiSourceFile.c - MrsWatson
// Copyright (c) 2016 <NAME>. 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,
// ... |
/*
* File : drv_uart.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2013, RT-Thread Develop Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://openlab.rt-thread.com/license/LICENSE
*
* Change Logs:
* Date Aut... |
/*
* Parse a regular expression, and extract a static suffix.
*
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2007-2013 Sourcefire, Inc.
*
* Authors: <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the ... |
/*
* Copyright (C) 2013 Samsung Electronics
* <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <lcd.h>
#include <libtizen.h>
#include <samsung/misc.h>
#include <errno.h>
#include <version.h>
#include <linux/sizes.h>
#include <asm/arch/cpu.h>
#include <asm/arch/gpio.h>
#includ... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Mupen64plus - savestate_convert.c *
* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
* Copyright (C) 2008 <NAME> *
* ... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include <time.h>
#include <poll.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <gbm.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <GLES2/... |
#pragma ident "$Id: main.c,v 1.3 2015/09/15 19:36:42 dauerbach Exp $"
/*======================================================================
*
* Program to populate the DCC web queues with status information from
* a single ISI data server.
*
*===================================================================... |
/*
* MEI Library for mei bus nfc device access
*
* Copyright (C) 2013 Intel Corporation. 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.... |
#include "cache.h"
#include "split-index.h"
#include "ewah/ewok.h"
struct split_index *init_split_index(struct index_state *istate)
{
if (!istate->split_index) {
istate->split_index = xcalloc(1, sizeof(*istate->split_index));
istate->split_index->refcount = 1;
}
return istate->split_index;
}
int read_link_exte... |
/* balance.c
* Balance IRQs.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <limits.h>
#include <ctype.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h> /* open, write */
#include "statistics.h"
#include "cpu.h"
#include "irq.h"
#inclu... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* massF2.c
*
* Code generation for function 'massF2'
*
*/
/* Include files */
#include <string.h>
#include "... |
#include <rtconfig.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/poll.h>
#include <sys/mman.h>
int page_size;
#define PAGE_SIZE page_size
#define PAGE_MASK (~(PAGE_S... |
#include <sys/types.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/uio.h>
#include <sys/un.h>
#include <sys/wait.h>
#include <err.h>
#include <signal.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mruby.h"
#include "mruby/compile.h"... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Mupen64plus-rsp-hle - re2.c *
* Mupen64Plus homepage: https://mupen64plus.org/ *
* Copyright (C) 2016 <NAME> *
* ... |
/* backupfile.c -- make Emacs style backup file names
Copyright (C) 1990-2006, 2009-2012 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 o... |
/*
* Copyright 2017 Particle Industries, 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
*
* Unl... |
// server.c
//
// Example of using Ossuary as a server in C
//
// This is the server half of a C client/server example for Ossuary.
// Run this server first, then run the client to send encrypted messages
// one way from client to server.
//
// The purpose of this example is to show the Ossuary FFI API, and demonstrate... |
#include "assets/model/model.h"
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <vector.h>
#include <hashmap.h>
/* Token is not null terminated with token_sz being the token length */
static float parse_float(const char* token, size_t token_sz)
{
(void) token_sz; /* TODO: Use functions with bou... |
/*
File: acl_from_text.c
Copyright (C) 1999, 2000, 2001
<NAME>, <<EMAIL>>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) ... |
/* BEEBS nbody benchmark
Copyright (C) 2014 Embecosm Limited and University of Bristol
This file is part of the Bristol/Embecosm Embedded Benchmark Suite.
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... |
/*************************************************************************
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
... |
#include "list.h"
#include <dbglogger.h>
#define LOG dbglogger_log
#define APOLLO_PATH "/dev_hdd0/game/NP0APOLLO/USRDIR/"
#define APOLLO_TMP_PATH "/dev_hdd0/tmp/apollo/"
#define APOLLO_DATA_PATH APOLLO_PATH "DATA/"
#define APOLLO_LOCAL_CACHE APOLLO_PATH "CACHE/"
#define APOLLO_UPDATE_URL "https://api.github.c... |
/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
//
// gsprint.c
// genetic-snake
//
// Created by <NAME>
// 04/17/2021
#include <stdio.h>
#include "gsdefs.h"
#ifdef _WIN32
#include <Windows.h>
#else
#include <unistd.h>
#endif
/*
* print_model_parameters - Prints model parameters from given gs_params struct
*/
void print_model_parameters(gs_params * params)... |
/*
* Copyright (c) 2017 Nordic Semiconductor ASA
* Copyright (c) 2020 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztest.h>
#include <storage/flash_map.h>
#include <dfu/flash_img.h>
void test_init_id(void)
{
struct flash_img_context ctx_no_id;
struct flash_img_context ctx_id;
int ret;... |
/*******************************************************************************
Copyright (c) 2016, <NAME> <<EMAIL>>.
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 co... |
/*
* Copyright (c) 2020 <NAME>
* 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 conditions and the f... |
/*
* i2c_bitbang.c
*
* Created on: Mar 30, 2017
* Author: tm
*/
#include "i2c_bitbang.h"
extern void delay_usec(uint16_t microSec);
/* Following defines set up I2C clock, nominally for 500 KHz, but */
/* execution delays actually slow it down to about 300 KHz (measured). */
/* With logic analyzer, I... |
/*
* Wi-Fi Protected Setup - common functionality
* Copyright (c) 2008, <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Alternatively, this software may ... |
#include "util.h"
#include "crypto.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <sys/time.h>
unsigned int global_seed = 0;
Payload *__hashcode = NULL;
void _init_hashcode()
{
__hashcode = palloc(Payload);
const static uint32_t hashcode[24] = {
1382635611,... |
/******************************************************************************
* Copyright (c) 2017, NXP Semiconductors
* 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. Redistributio... |
/***********************************************************
*
* This test program writes a netCDF file using the parallel
* netCDF library using MPI-IO.
*
**********************************************************/
/*
cc test_write_alloc3d.c -o genarray_pnc -I/ccs/home/sklasky/parallel-netcdf/jaguar/include -L/... |
/*
* 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 ... |
/*
* src/bin/pg_autoctl/cli_do_root.c
* Implementation of a CLI which lets you run operations on the local
* postgres server directly.
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the PostgreSQL License.
*
*/
#include <errno.h>
#include <getopt.h>
#include <inttypes.h>... |
/// MentOS, The Mentoring Operating system project
/// @file keyboard.c
/// @brief Keyboard handling.
/// @copyright (c) 2019 This file is distributed under the MIT License.
/// See LICENSE.md for details.
#include "keyboard.h"
#include "isr.h"
#include "video.h"
#include "stdio.h"
#include "keymap.h"
#... |
/*
* driver for ENE KB3926 B/C/D/E/F CIR (also known as ENE0XXX)
*
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* 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
* Licen... |
//
// SENAC BCC PI 2
// Projeto Betelgeuse
//
// engine-gameplay.c
// preenche a struct de jogo com as cidades, crimes, dicas
// locais de interesse, dia da semana e horário
#include <stdio.h>
#include <stdlib.h>
#include "math.h"
#include "engine.h"
void loadGameData(Game *game){
//RANDOMIZE LEVE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.