text stringlengths 3.12k 18.7k |
|---|
/*
* Copyright 2018 <NAME>
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the rights to use, copy, modify, merge,
* publish, distribute... |
/*
* mp3rtp command line frontend program
*
* initially contributed by <NAME>
*
* Copyright (c) 2000 <NAME>
* 2010 <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 ... |
/*
* Copyright (c) 2007, 2008 University of Tsukuba
* Copyright (c) 2010 Igel Co., Ltd
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the... |
/*
* Copyright (c) 2020 大前良介 (<NAME>)
*
* This software is released under the MIT License.
* http://opensource.org/licenses/MIT
*/
#include <unistd.h>
#include <libpng16/png.h>
#include <setjmp.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include "common.h"
#define FONT_SIZE 15
#define FONT_PIXELS (FONT_SIZE... |
///////////////////////////////////////////////////////////////////////////////
// inspired by github "TheRealYoussef"
// https://github.com/TheRealYoussef/The-Dining-Philosophers-Problem/
///////////////////////////////////////////////////////////////////////////////
#include <pthread.h>
#include <stdio.h>
#includ... |
/*
This file is part of ``kdtree'', a library for working with kd-trees.
Copyright (C) 2007-2011 <NAME> <<EMAIL>>
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 ... |
#include "core.h"
#include "platform.h"
#include "str.h"
#include <string.h>
#include <stdlib.h>
cs_bool String_CaselessCompare(cs_str str1, cs_str str2) {
if(!str1 || !str2) return false;
cs_byte c1, c2;
while(true) {
c1 = *str1++, c2 = *str2++;
if(c1 >= 'A' && c1 <= 'Z') c1 += 32;
if(c2 >= 'A' && c2 <= 'Z'... |
/* 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... |
/*
* Copyright (c) 2013 <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 a... |
/* Copyright 2001, 2019 IBM Corporation
*
* 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 and the
* following d... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program and library */
/* SCIP --- Solving Constraint Integer Programs */
... |
/*******************************************************/
/* "C" Language Integrated Production System */
/* */
/* Microsoft Windows Version 3.02 06/15/04 */
/* */
/* ... |
/* tailor.h -- Not copyrighted 1993 <NAME> */
#ifdef AMIGA
#include "amiga/osdep.h"
#endif
#ifdef AOSVS
#include "aosvs/osdep.h"
#endif
#ifdef ATARI
#include "atari/osdep.h"
#endif
#ifdef DOS
#include "msdos/osdep.h"
#endif
#ifdef __human68k__
#include "human68k/osdep.h"
#endif
#ifdef OS2
#include "os2/osdep.h"
#... |
/***********************************************************************
name: <NAME>
lineNum -- see if a word is in the online dictionary
description:
See CS 360 IO lecture for details.
***********************************************************************/
/* Includes and definitions */
#include <string.h>
#inclu... |
/*
* @UBERXMHF_LICENSE_HEADER_START@
*
* uber eXtensible Micro-Hypervisor Framework (Raspberry Pi)
*
* Copyright 2018 Carnegie Mellon University. All Rights Reserved.
*
* NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING
* INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON
... |
/******************************************************************************
* @file main.c
* @version V1.00
* $Revision: 4 $
* $Date: 18/07/13 4:20p $
* @brief Use PDMA channel 1 to transfer data from memory to memory.
* @note
* SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2018 Nuvoton Techno... |
/* Copyright (c) 2007-2009, Stanford University
* 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 ... |
/*
* Copyright (c) 2016 <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, p... |
/* File: io_export_diagram_traversal.c; Copyright and License: see below */
#include "io_export_diagram_traversal.h"
#include "trace.h"
#include "data_diagram.h"
#include "data_classifier.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
void io_export_diagram_traversal_init( io_export_diagram_traversal_t... |
/* -*- C -*- */
/*
* Copyright (c) 2013-2020 Seagate Technology LLC 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... |
/*
* Copyright (c) 2007 - 2020 <NAME>
*
* 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... |
// Copyright © 2014 <NAME>
//
// Permission to use, copy, modify, and/or distribute this software for
// any purpose with or without fee is hereby granted, provided that the
// above copyright notice and this permission notice appear in all
// copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
... |
/*
* Copyright (C) 2017 FIX94
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <inttypes.h>
#include <string.h>
#include <malloc.h>
#include "rijndael.h"
#include "sha1.... |
/*
* File: tst_threaded_ring_persistent.c
*
* Functionality:
* Simple point-to-point ring-communication test using MPI_Send_init, MPI_Recv_init and MPI_Start, MPI_Wait.
* Works with intra-communicators and up to now with any C (standard and struct) type.
* Does not work with MPI_COMM_SELF.
*
* Author: <NAME>... |
/* packet-pw-fr.c
* Routines for Frame Relay MPLS PW dissection as per RFC4619.
* Copyright 2009, <NAME>, <NAME> <<EMAIL>>
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the ... |
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/msg.h>
#include <pthread.h>
#include <fcntl.h>
#include <poll.h>
#include <string.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include "network.h"
#inc... |
#include "shell.h"
#include "stdLib.h"
#include "stdio.h"
#include "plotLib.h"
#include "mathLib.h"
static int R = DR;
static int G = DG;
static int B = DB;
static int isRunning = 1;
static int timeZone = -3;
void startShell(){
sysPrintString("Shell initialized\n", CB, CG, CR);
char string[MAX_WORD_LENGTH] = {0};
... |
#include "Audio.h"
#include "main.h"
//#include "stm32f4_discovery_audio.h"
#include <stdlib.h>
static void WriteRegister(uint8_t address, uint8_t value);
static void StartAudioDMAAndRequestBuffers(void);
void StopAudioDMA(void);
static AudioCallbackFunction *CallbackFunction;
static int *CallbackContext;
static i... |
/********************************************************************************
* Copyright (c) 2014, <NAME> *
* All rights reserved. *
* ... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
#include "shell.h"
#include "../drv/keyboard.h"
#include "../drv/keys.h"
#include "../drv/pci.h"
#include "../drv/storage.h"
#include "../vga.h"
#include "../io.h"
#include "../cpu/cpuid.h"
#include "../kmm.h"
int max_input = 127;
char input_buffer[128];
u8 is_reading = 0;
int cursor = 0;
u8 input_x = 0;
u8 inp... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
enum
{
Qlisten = 1,
Qclone = 2,
Q2nd = 3,
Q3rd = 4,
Qinf = 5,
};
/*
* find protection structure
*/
static Netprot*
findprot(Network *np, int id)
{
Netprot *p;
for(p = np->prot; p; p = p->ne... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stddef.h>
#include <stdio.h>
#include "friendly_reader.h"
#include "parse_xml.h"
#include "lord.h"
#define SKIP_SPACE(a) while( isspace(*a) ) a++
static ptrdiff_t item_len(struct tag *t);
static ptrdiff_t tag_len(struct tag *t);
static xm... |
/*
* 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:
* 1. Redistributions of source code must retain the above copyr... |
//
// LCD Driver: 0.96" OLED
//
// Interface: I2C
// pin1: Gnd
// pin2: Vcc
// pin3: SCL
// pin4: SDA
// pin5: OUT
// pin6: IN
// pin7: SCK
// pin8: CS
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <Nano1X2Series.h>
#include "sys.h"
#include "gpio.h"
#include "i2c.h"
#include ... |
// MIT License
// Copyright (c) 2017 <NAME> @nesbox // <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, cop... |
/*-
* Copyright (c) 2003-2007 <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 copyright
* notice, this list of conditi... |
/* Translate DNA sequence into six frames, into individual ORFs.
*
*/
#include "esl_config.h"
#include "easel.h"
#include "esl_alphabet.h"
#include "esl_gencode.h"
#include "esl_getopts.h"
/*****************************************************************
* 1. Main loop for reading complete sequences with ReadSe... |
/*
CF3
Copyright (c) 2015 ishiura-lab.
Released under the MIT license.
https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md
*/
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include"test1.h"
volatile int8_t x251 = 6;
static uint64_t x283 = UINT64_MAX;
uint16_t x387 = UINT16_MAX;
uint64_t x661 = UINT6... |
#include "framebuffer.h"
static unsigned char *BitmapFont[256];
/* ============================= Frame buffer ============================== */
void sdlInit(frameBuffer *fb, int fullscreen) {
int flags = SDL_WINDOW_OPENGL;
if (fullscreen) flags |= SDL_WINDOW_FULLSCREEN;
if (SDL_Init(SDL_INIT_VIDEO) == -1... |
/* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
* Copyright (c) 2008, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in so... |
// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include <shell.h>
#include <mainLib.h>
#include <libc.h>
#include <timeUtils.h>
#include <game.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <te... |
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include "helper.h"
#include "variable.h"
#include "lexer.h"
/**
* Current token being used.
*/
char *current_token;
/**
* Type of the current token being used.
*/
enum TOKEN_TYPE current_type;
static enum TOKEN_TYPE getType(const c... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2014-2018 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2019 Triad National Security, LLC. All rights
* reserved.
* Copyright (c) 2019 Google, LLC.... |
/**
* Copyright 2021 Huawei Technologies Co., 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 applicable law... |
#include <stdio.h>
#include <dirent.h>
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/fcntl.h>
#include <sys/errno.h>
#include <stdint.h>
#define MFS_FILENAME_MAXLEN 63
struct mfs_super_block {
uint64_t version;
uint64_t magic;
uint64... |
/*
Copyright (c) 2004-2009 <NAME> <<EMAIL>>
Copyright (c) 2004-2008 Center for Bioinformatics, University of Hamburg
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear ... |
/* Some tests for the ARM instruction decoder (disassembler)
*
* Copyright 2022, CompuPhase
*/
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "armdisasm.h"
static void printthumb(ARMSTATE *state, uint16_t w, uint16_t w2)
{
disasm_thumb(state, w, w2);
if (state->size == 4)
printf("%04x %... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <inttypes.h>
#include "time.h"
#include "pthread.h"
#include "random.h"
#ifndef BOARD_NATIVE
#include "periph/gpio.h"
#include "periph/i2c.h"
#endif /* !BOARD_NATIVE */
#ifdef MODULE_MTD_SDCARD
#include "mtd_s... |
/*
* Copyright (C) 2017 <NAME> <<EMAIL>>
* Copyright (C) 2017 <NAME> <<EMAIL>>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup drivers_mrf24j40
* @{
*
* @file
* @b... |
/*************************************************************************************************************
Copyright 2021-2022, Skyworks Solutions, 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 Lice... |
/*!
* @file main.c
* @brief BLE 12 Click Example.
*
* # Description
* This example reads and processes data from BLE 12 Click board™.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Initializes UART driver and logs UART.
* After driver initialization, the app performs a wake... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
/*
... |
// Copyright (c) 2015-2019, <NAME>
// SPDX-License-Identifier: ISC
// For strnlen() and wcwidth()
#define _XOPEN_SOURCE 700
#include <curses.h>
#include <locale.h>
#include <readline/history.h>
#include <readline/readline.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <std... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2018, <NAME>
*
* 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,... |
/* Code to pulse-count for water meter */
#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE
#include <stdio.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "mqtt.h"
#include "ethernet.h"
#include "driver/gpio.h"
#include "esp_log.h"
static const char *TAG = "... |
/*
MiniShare - Minimal HTTP Server
Copyright (C) 2002-2004 <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; either version 2
of the License, or (at your option) any later version.
Th... |
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
// TOP MIPI_DSI AML Registers
#define MIPI_DSI_TOP_SW_RESET (0x00 << 2)
#define MIPI_DSI_TOP_CLK_CNTL (0x... |
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "../include/cgen.h"
#define MAX_TYPE_LEN 32
extern int line_num;
int yyerror_count = 0;
const char* c_prologue = "#include \"ptuclib.h\"\n";
void ssopen(sstream* S)
{
S->stream = open_memstream(& S->buffer, &... |
// Adapted from "Non-Polynomial Worst-Case Analysis of Recursive Programs"
// by <NAME>, <NAME>, and <NAME>,
// in TOPLAS'19
#include "tick.h"
#include <stdlib.h>
#include <stdio.h>
//void print_matrix(int length, char* name, int **x){
// int i, j;
// for (i = 0; i<length; i++){
// for (j = 0; j<length; j++)... |
// dest, src, transbg, fillcolor, blendfunc
#define wp_8_8_0_0_0() *cur_dest=*cur_src;
#define wp_8_8_0_0_1() *cur_dest=pfp(table,*cur_src,*cur_dest);
#define wp_8_8_0_1_0() *cur_dest=fillcolor;
#define wp_8_8_0_1_1() *cur_dest=pfp(table,fillcolor,*cur_dest);
#define wp_8_8_1_0_0() if(*cur_src)*cur_dest=*cur_src;
#d... |
#include <stdint.h>
#include <sys/types.h>
#include <netinet/ip.h>
#include <string.h>
#include "mtcp.h"
#include "icmp.h"
#include "eth_out.h"
#include "ip_in.h"
#include "ip_out.h"
#include "debug.h"
#include "arp.h"
#include "timer.h"
#include "config.h"
#define IP_NEXT_PTR(iph) ((uint8_t *)iph + (i... |
//#include "tile-hook.h"
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <strings.h>
#include "path-mapper.h"
#include "tile/tile-rewrite-path.h"
#include "tile/mapnik-bridge.h"
#include "tile/tile-proxy.h"
struct st_h2o_tile_handler_t {
h2o_file_handler_t super;
h2o_iovec_t sty... |
/* wimax_phy_attributes_decoder.c
* WiMax PDU Burst Physical Attributes decoder
*
* Copyright (c) 2007 by Intel Corporation.
*
* Author: <NAME> <<EMAIL>>
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1999 <NAME>
*
* This program is free software; you can redistribute it and/or
*... |
#include "lib.h"
#include "db.h"
#include "udp.h"
/* Send Info-Reply */
int
ms_send_info_rep(struct pk_req_entry *pke, struct site_info *site)
{
char *buf, *ptr;
struct info_msg_hdr *imh;
struct lcaf_hdr *lcaf;
uint16_t auth_len = HMAC_SHA1_DIGEST_LENGTH;
size_t buf_len;
int i;
struct list_entry_t *entry;
uni... |
/*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* 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/... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <jpeglib.h>
#include <png.h>
#include "img.h"
static void
png_err(png_struct *pngs, const char *msg)
{
(void)pngs;
die("libpng: %s", msg);
}
static void
jpeg_err(j_common_ptr js)
{
fprintf(stderr, "libjpeg: ");
(*js->err->ou... |
#include <Python.h>
#include <numpy/arrayobject.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <pthread.h>
#include "readingdb_... |
/* See LICENSE file for license details. */
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
#include <xcb/xcb.h>
#include <xcb/xcb_keysyms.h>
#include "xwm.h"
#include "config.h"
#define UNUSED(x) (void)(x)
static xcb_connection_t * dpy;
static xcb_screen_t * scre;
static xcb_drawable_t win;
static uint... |
/* wrkvar.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__9 = 9;
static integer c__1 = 1;
static integer c__5 = 5;
/* $Procedure WRKVAR ( Write a variable ... |
/* Copyright 2019 <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 License, or
* (at your option) any later version.
*
* This program is distribu... |
/*
* Esetroot -- Set the root pixmap. This program enables non-Enlightenment
* users to use Eterm's support for pseudotransparency.
*
* Written by <NAME> <<EMAIL>> with modifications by <NAME>
* <<EMAIL>> and <NAME> <<EMAIL>>
*
*/
static const char cvs_ident[] = "$Id: Esetroot.c,v 1.17 2003/04/22 ... |
/**********************************************************************
File : cmpsc473-p2.c
Description : Slab allocation and defenses
***********************************************************************/
/**********************************************************************
Copyright (c) 2019... |
/*
* Copyright (c) 2000 <NAME>
* Copyright (c) 2001 <NAME>
* Copyright (c) 2017 <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:
* 1. Redistributions of source code must... |
/* Last modified on Sat Aug 28 14:30:11 PDT 1999 by murray */
/* Hack to time the digest calculations for various algorithms.
*
* This is just the digest timing.
* It doesn't include the copy or compare or finding the right key.
*
* Beware of overflows in the timing computations.
*
* Disable AES-NI (Intel hardw... |
#include "g728.h"
/*
* (c) Copyright 1990-2007 AT&T Intellectual Property.
* All rights reserved.
*
* NOTICE:
* This software source code ("Software"), and all of its derivations,
* is subject to the "ITU-T General Public License". It can be viewed
* in the distribution disk, or in the ITU-T Recommendation G.191... |
/********************************************************************
* Description: bb_gpio
* This file, 'bb_gpio.c', is a HAL component that
* provides access to gpio pins using /dev/mem.
*
* Author: <NAME> <<EMAIL>>
* License: GPL Version 2
*
* Copyright (c) 2021 Pocket NC Company A... |
/**
* @file system_helper.c
* @author <NAME> <<EMAIL>>, <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>
* @brief Helper functions for interaction with the underlying system
* for testing purposes.
*
* @copyright
* Copyright 2016 Cisco Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "... |
/*s: lib_graphics/libdraw/string.c */
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <draw_private.h>
#include <font.h>
/*s: enum [[_anon_]]([[(lib_graphics/libdraw/string.c)]]) */
enum
{
/*s: constant [[Max]] */
Max = 100
/*e: constant [[Max]] */
};
/*e: enum [[_anon_]]([[(lib_graphics/libdraw/string.c)]... |
#include "helpers.h"
// https://stackoverflow.com/questions/12698836/counting-words-in-a-string-c-programming
int lineWords(const char sentence[ ]) { // #words of a line (idDoc)
int counted = 0; // result
const char* it = sentence;
int inword = 0;
do switch(*it) {
case '\0':
case ' ':... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2020 ST... |
/** @file
Copyright 2006 - 2011 Unified EFI, Inc.<BR>
Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full tex... |
/* Open-MPI
* Copyright (c) 2014-2015 Intel, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "mqar.h"
#include "libevent2022.h"
#include "progress_threads.h"
struct mqar_thread_t;
typedef struct mqar_thread_t mqar_thread_t;
typedef void (*mqar_thread_fn... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define MAXN 35
#define MAX_NAME 256
/* 学生信息 */
typedef struct student
{
int no;
char name[MAX_NAME];
double Chinese;
double math;
double mark_ave;
double mark_tot;
} STUDENT;
int len = 0;
/* 菜单 */
void menu()
{
printf("\n");
printf("***... |
/*#*STARTLICENCE*#
Copyright (c) 2005-2009, Regents of the University of Colorado
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, ... |
#include "logic.h"
#include "r_types.h"
//todo: probably should refactor this shitty ass function!!
void animation(int state, Tile *animation,
int eState, Tile *eAnimation)
{
animationCounter++;
fastestAnimationCounter++;
if(FPS/animationCounter == 4) //60 FPS, every x count (4==15)
{
animationCounter = 0;
... |
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#include <string.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <png.h>
#include "mp_msg.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
#i... |
#include <stddef.h>
#include <stdint.h>
#include "lib/printk.h"
#include "drivers/framebuffer/framebuffer.h"
#include "drivers/framebuffer/framebuffer_console.h"
#include "c_font.h"
#include "lib/string.h"
#include "lib/memcpy.h"
#include "lib/memset.h"
#include "lib/errors.h"
static uint32_t framebuffer_console_i... |
// SPDX-License-Identifier: MIT
/* Kill the most memory-hungy process */
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <limits.h> // for PATH_MAX
#include <regex.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "kill... |
/*
* This file is part of the 'varbench' project developed by the
* University of Pittsburgh with funding from the United States
* National Science Foundation and the Department of Energy.
*
* Copyright (c) 2017, <NAME> <<EMAIL>>
*
* This is free software. You are permitted to use, redistribute, and
* modify i... |
/*****************************************************************************
* File Name : spi1rwB.c
* Date First Issued : 06/12/2011
* Board : Discovery F4
* Description : SPI1 routine for simultaneous read/write (MEMs accelerometer)
*****************************************************... |
/*
* Copyright (c) 2019-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, pub... |
/*
Cubesat Space Protocol - A small network-layer protocol designed for Cubesats
Copyright (C) 2012 GomSpace ApS (http://www.gomspace.com)
Copyright (C) 2012 AAUSAT3 Project (http://aausat3.space.aau.dk)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General P... |
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License ve... |
#include "ST.h"
#include "mdat.h"
#include "dat/font.h"
#include "dat/s01.h"
#include "dat/s02.h"
extern uint8_t end[];
extern volatile uint32_t vbl_counter;
extern volatile int32_t vbl_key_pressed;
uint32_t vbl_expected_counter;
uint16_t old_pal[16];
uint8_t old_mode = 0;
uint8_t old_vmem_h = 0;
uint8_t old_vmem_m ... |
/**
******************************************************************************
* File Name : main.c
* Description : Main program body
******************************************************************************
*
* COPYRIGHT(c) 2016 STMicroelectronics
*
* Redistribution and use in ... |
/****************************************************************************/
/* */
/* The FreeType project -- a free and portable quality TrueType renderer. */
/* */
/* ... |
/******************************************************************************
*
* Copyright (c) 2020, Intel Corporation
* 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. Redistribu... |
/* GLIB - Library of useful routines for C programming
* Copyright (C) 1995-1997 <NAME>, <NAME> and <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.