source string | code_lang string | content string | idx int64 |
|---|---|---|---|
the-stack-v2-dedup | C | /*
**********************************************************************************************************************
* eGon
* the Embedded System
* boot pack sub-system
*
* Copyright(C), 2006-2017, SoftWinners Microelectronic Co., Ltd.
* ... | 1,330,200 |
the-stack-v2-dedup | C | // Copyright (c) 2009-2018 LG Electronics, 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... | 1,330,201 |
the-stack-v2-dedup | C | #ifndef __SYS_MOD_STUB_H__
#define __SYS_MOD_STUB_H__
#include <typedef.h>
__u32 esMSTUB_GetFuncEntry(__s32 id, __u32 funcnum);
__s32 esMSTUB_UnRegFuncTbl(__s32 id);
__s32 esMSTUB_RegFuncTbl(__s32 id, void *tbl);
#endif /* __SYS_MOD_MSTUB_H__ */ | 1,330,202 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strjoin.c :+: :+: :+: ... | 1,330,203 |
the-stack-v2-dedup | C | #include <linux/init.h>
#include <linux/module.h>
int hello_init(void){
printk("Hello init\n");
return 0;
}
void hello_exit(void){
printk("Hello exit\n");
}
module_init(hello_init)
module_exit(hello_exit) | 1,330,204 |
the-stack-v2-dedup | C | buffer_t *bad_buffer_new() {
/* Create the buffer and a pointer to it */
buffer_t *buffer_ptr, buffer;
buffer_ptr = &buffer;
/* Initialize attributes */
buffer_ptr->size = 1;
buffer_ptr->data = malloc(sizeof(char));
if (buffer_ptr->data == NULL) {
allocation_failed();
}
buffer_ptr-... | 1,330,205 |
the-stack-v2-dedup | C | #ifndef _DRI_BUZZER_H__
#define _DRI_BUZZER_H__
#include "Har_Buzzer.h"
void Buzzer_Init();
void Buzzer_ON();
void Buzzer_OFF();
void Buzzer_Negative();
#endif | 1,330,206 |
the-stack-v2-dedup | C | /* Verwaltet 2 separate Inventare, um das Waffenwechseln zu erleichtern */
#strict 2
static SecondInventoryDisabled;
protected func Activate(int player)
{
if (SecondInventoryDisabled)
{
MessageWindow("Zweites Inventar ist global deaktiviert", player, GetID(), "Einstelung Zweites Inventar");
return false;
}
v... | 1,330,207 |
the-stack-v2-dedup | C | void track_of_score(int *score,int indicator) //functie ce scrie scorul actual(indicator=0)
{ FILE *file; //sau il scrie (indicator=1)
int a;
if(indicator==0)
{ file=fopen("track_of_score.txt", "w");
fprintf(file,"%d\n", *score);
}
else
{ file=fopen("track_of_score.txt", "r");
fscanf(file,... | 1,330,208 |
the-stack-v2-dedup | C | /*******************************************************************************
* Copyright (c) 2014 IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany t... | 1,330,209 |
the-stack-v2-dedup | C | const char* ssid = "cottage";
const char* pass = "porsche911car"; | 1,330,210 |
the-stack-v2-dedup | C | #include <iostream>
#include <fstream>
#include <cmath>
#include "TFile.h"
#include "TH2D.h"
#include "TCanvas.h"
#include "TStyle.h"
using namespace std;
int SetStyle(TH2D * h){
h->SetStats(0);
h->GetXaxis()->CenterTitle(true);
h->GetXaxis()->SetTitleFont(42);
h->GetXaxis()->SetTitleSize(0.06);
h->GetXaxi... | 1,330,211 |
the-stack-v2-dedup | C | /*
* File: lplc-adc.c
*
* Support for analogue to digital conversion library.
* This makes use of the Microchip Library functions.
*
* Author: mike
*
* Created on 27th September 2014, 21:49
*/
#include <stdio.h>
#include <stdlib.h>
#include "lplc-adc.h"
//#include "LCD-Graphic-ST7735S.h"
... | 1,330,212 |
the-stack-v2-dedup | C | /*
* memory.c
*
* Code and data caching routines
*
*/
#include "ztypes.h"
/* A cache entry */
typedef struct cache_entry {
struct cache_entry *flink;
int page_number;
zbyte_t data[PAGE_SIZE];
} cache_entry_t;
/* Cache chain anchor */
static cache_entry_t *cache = NULL;
/* Pseudo translation buffe... | 1,330,213 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: ... | 1,330,214 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_ft.c :+: :+: :+: ... | 1,330,215 |
the-stack-v2-dedup | C | #ifndef _PAGE_SWAP_H_
#define _PAGE_SWAP_H_
#include <stdbool.h>
#include <block_store.h>
#define MAX_PAGE_TABLE_ENTRIES_SIZE 2048
#define MAX_PHYSICAL_MEMORY_SIZE 512
typedef struct {
unsigned int pageTableIdx;
unsigned char data[1024];
unsigned char accessTrackingByte;
unsigned char accessBit;
}Frame_t;
typed... | 1,330,216 |
the-stack-v2-dedup | C | /* DeMonMolecule.c */
/**********************************************************************************************************
Copyright (c) 2002-2017 Abdul-Rahman Allouche. All rights reserved
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation... | 1,330,217 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
int main() {
char* input = "Hello World!";
int length = 0;
int vowels = 0;
while (input[length] != '\0') {
char c = input[length];
if ( c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
vowels = vowels + 1;
}
length = length + 1;
}
... | 1,330,218 |
the-stack-v2-dedup | C | /**
* File : vc_strlcpy.c
* Author : Danilo & Daisuke
* Date : Fri 8 Feb 2019
*/
#include <stdio.h>
#include <memory.h>
unsigned int vc_strlcpy(char *dest, char *src, unsigned int size) {
for (int i = 0; i < size && i < size; ++i) {
dest[i] = src[i];
}
retu... | 1,330,219 |
the-stack-v2-dedup | C | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 Tomasz Koziara
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to u... | 1,330,220 |
the-stack-v2-dedup | C | /*
Anotaçoes e adaptações disciplina SO 2016/1
compilar: gcc -pthread Trabalho02.c
executar: ./Trabalho02.c 12
12 é o parametro
*/
/**
* A pthread program illustrating how to
* create a simple thread and some of the pthread API
* This program implements the summation function where
* the summation operation is r... | 1,330,221 |
the-stack-v2-dedup | C | #include<stdio.h>
int main()
{int i,j,n,a1=0,b1=0,c1=0,a,b,c;
scanf("%d",&n);
for(i=0;i<n;i++)
{scanf("%d %d %d",&a,&b,&c);
a1+=a;
b1+=b;c1+=c;
}
if(a1==0&&b1==0&&c1==0)
printf("YES");
else
printf("NO");
return 0;
} | 1,330,222 |
the-stack-v2-dedup | C | ../../external/SDL2/include/SDL_gamecontroller.h | 1,330,223 |
the-stack-v2-dedup | C | /*
** depth.c for raytracer2 in /home/nicolaspolomack/graphical/raytracer2/depth_of_field
**
** Made by Nicolas Polomack
** Login <nicolas.polomack@epitech.eu>
**
** Started on Thu Mar 30 19:58:36 2017 Nicolas Polomack
** Last update Wed Apr 5 12:30:57 2017 Nicolas Polomack
*/
#include <float.h>
#include <limits... | 1,330,224 |
the-stack-v2-dedup | C | /*
***********************************************************************************************************************
* Copyright(c) 北京康吉森技术有限公司 2015
* Beijing Consen Technologies Co.,Ltd. All rights reserved.
*
*
* 项目名称 : 安全控制系统
*
* 模块名称 : 系统资源管理模块
*
* 文件名称 : SysSync.c
*
* ... | 1,330,225 |
the-stack-v2-dedup | C | /*
* Copyright (c) 2004 Suleiman Souhlal
* 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 con... | 1,330,226 |
the-stack-v2-dedup | C | #ifndef PARSE_H__
#define PARSE_H__
#include "util.h"
#include "symbol.h"
#include "errormsg.h"
#include "absyn.h"
#include <stdio.h>
A_exp parse(string fname);
#endif | 1,330,227 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* touch.c :+: :+: :+: ... | 1,330,228 |
the-stack-v2-dedup | C | inherit "room/room";
object monster;
reset(arg) {
if(!monster) {
monster = clone_object("/wizards/jenny/gnael/mosut/elf_noble.c");
move_object(monster, this_object());
}
if(arg) return;
add_exit("west","/wizards/jenny/gnael/huoneet/city12.c");
add_exit("north","/wizards/jenny/gnael/huon... | 1,330,229 |
the-stack-v2-dedup | C | //------------------------------------------------------------------------------
// SLIP_LU/SLIP_initialize_expert: intialize SLIP_LU memory functions for GMP
//------------------------------------------------------------------------------
// SLIP_LU: (c) 2019-2020, Chris Lourenco, Jinhao Chen, Erick Moreno-Centeno,
/... | 1,330,230 |
the-stack-v2-dedup | C | #ifndef __KEY30_H
#define __KEY30_H
#define KEY_VERSION "3.0"
#endif
| 1,330,231 |
the-stack-v2-dedup | C | #pragma once
#include <stdint.h>
// System.Object
#include "mscorlib_System_Object.h"
// UnityEngine.YieldInstruction
struct YieldInstruction_t20 : public Object_t
{
};
// Native definition for marshalling of: UnityEngine.YieldInstruction
struct YieldInstruction_t20_marshaled
{
};
| 1,330,232 |
the-stack-v2-dedup | C | #pragma once
#include "sampapi/0.3.7-R1/CTextDraw.h"
#include "sampapi/0.3.7-R3-1/CTextDraw.h"
#include "sampapi/0.3.7-R5-1/CTextDraw.h"
| 1,330,233 |
the-stack-v2-dedup | C | #include <stdio.h>
#define M 128
int main()
{
char buffer[M];
while(1)
{
fgets(buffer, M, stdin);
printf("%s\n", buffer);
}
}
| 1,330,234 |
the-stack-v2-dedup | C | #ifndef BSP_LED_H
#define BSP_LED_H
#include "STC15xx.H"
#include "stc15xx_gpio.h"
#include "stc15xx_timer.h"
/******************************************
普通单色LED灯
*******************************************/
sbit YellowLedPIN = P3^5;
sbit RedLedPIN = P4^1;
typedef enum
{
YellowLed = 1,
RedLed
}LED;
void bsp_Gennea... | 1,330,235 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* option_i.c :+: :+: :+: ... | 1,330,236 |
the-stack-v2-dedup | C | #ifndef _ORANGES_PROTECT_H__
#define _ORANGES_PROTECT_H__
/* 段描述符 */
typedef struct s_descriptor {
u16 limit_low; // Limit
u16 base_low; // Base
u8 base_mid; // Base
u8 attr1; // P(1) DPL(2) DT(1) TYPE(4)
u8 limit_high_attr2; // G(1) D(1) 0(1) AVL(1) L... | 1,330,237 |
the-stack-v2-dedup | C | #include "../headers/decrypt.h"
#include <stdio.h>
int main() {
decrypt(24297, 23935);
}
| 1,330,238 |
the-stack-v2-dedup | C | #pragma warning (disable : 4005)
//-----------------------------------------------------------------------------
// Since Lotus Notes includes a subset of the Windows API, it emulates it
// and redefines some macros. If we include the header files too early,
// it will result in invalid packing, and types maybe too sma... | 1,330,239 |
the-stack-v2-dedup | C | #include <curses.h>
#include <signal.h>
#include <sys/time.h>
#include <string.h>
#include <aio.h>
int col, row, dir;
int delay = 200;
char* msg = "hello";
char* blank = " ";
int done = 0;
struct aiocb kbcbuf;
void set_ticker(int delay);
void move_message(int signum);
void setup_aio_buffer();
void enable_kbd_sign... | 1,330,240 |
the-stack-v2-dedup | C | #include<sys/types.h>
#include<unistd.h>
#include<stdio.h>
int main ( int argc , char * argv []) {
pid_t pid ;
pid = fork () ;
if ( pid == -1) {
printf (" Fallo en fork \n ");
return -1;
} else
if (! pid ) {
printf (" Proceso hijo : PID %d\ n" , getpid () );
} else {
printf (" Proceso padre : PID %d \n " , getpid () ) ... | 1,330,241 |
the-stack-v2-dedup | C | #include "driver.h"
#include "cpu/adsp2100/adsp2100.h"
#include "wpc.h"
#include "dcs.h"
/* 310101 Added dcs_speedup to do sound decompression in C */
/* 280101 Corrected bug which caused garbled sound at regular intervals. */
/* (It was a stupid cut & paste bug '>=' instead of '>') */
/* changed handlin... | 1,330,242 |
the-stack-v2-dedup | C | // Distributed under the CC0 public domain license.
// By Alison Sanderson. Attribution is encouraged, though not required.
// See licenses/cc0.txt for more information.
// debug.c: Debugging functions.
#include "common.h"
#include "p_player.h"
#include <stdio.h>
#include <GDCC.h>
// Extern Objects ----------------... | 1,330,243 |
the-stack-v2-dedup | C | void S18_ModuloFit_1200_1300_eQ()
{
//=========Macro generated from canvas: c/c
//========= (Tue Mar 30 10:38:43 2021) by ROOT version 6.22/06
TCanvas *c = new TCanvas("c", "c",0,0,800,600);
c->SetHighLightColor(2);
c->Range(-0.5487514,-2.070425,4.938762,1.48867);
c->SetFillColor(0);
c->SetBorderMode(0)... | 1,330,244 |
the-stack-v2-dedup | C | #include <stdio.h>
extern int gx;
void test(){
gx++;
}
int main(){
printf("%d\n",gx);
test();
test();
test();
printf("%d\n",gx);
return 0;
}
int gx = 0; | 1,330,245 |
the-stack-v2-dedup | C | /* -*- C -*- */
/*
* Copyright (c) 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-2.0
... | 1,330,246 |
the-stack-v2-dedup | C | /**
* \file "board.h"
* \author joH1
*
* \version 0.1
*
* \brief This file contains the definition of the structure representing a
* board of John Conway's <b>Game of Life</b>.
*
* This game is a 0-player game, which means its evolution only depends on its
* initial state and the set of \a rules that o... | 1,330,247 |
the-stack-v2-dedup | C | /**********************************************************************
*
* results.c -- Stores test results
*
* Dimitris Antoniadis <akdimitri@auth.gr>
* Last edited: 31/10/2018
*
**********************************************************************/
#include <stdio.h>
void write_results_to_file( double s[10... | 1,330,248 |
the-stack-v2-dedup | C | /*
* buffer.h
*
* Created: 2015-04-05 15:42:37
* Author: Paul Doose
*/
#include <avr/io.h>
#ifndef BUFFER_H_
#define BUFFER_H_
/*
* Using one spot in buffer to indicate state of buffer
* so there will always be one spot empty
* buffer max size will be 255 not 256
*/
typedef struct BUFFER {
uint8_t read; ... | 1,330,249 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <sys/wait.h>
#include <pthread.h>
#define SERV_PORT 5001
#define SERV_IP_ADDR "192.168.3.113"
#define BACKLOG 5
void chi... | 1,330,250 |
the-stack-v2-dedup | C | /**CFile****************************************************************
FileName [ioWritePla.c]
PackageName [MVSIS 2.0: Multi-valued logic synthesis system.]
Synopsis [Writes the binary two-level circuits into a file as a PLA.]
Author [MVSIS Group]
Affiliation [UC Berkeley]
Date [... | 1,330,251 |
the-stack-v2-dedup | C | /* Generated by the New Jersey Machine-Code Toolkit, version 0.5a */
/* command line: tools -debug-match dbm -matcher disassembler.m -decoder dec -encoder enc -verbose hppa.spec hppadis.spec */
#include <mclib.h>
#include "enc.h"
#define sign_extend(N,SIZE) \
(((int)((N) << (sizeof(unsigned)*8-(SIZE)))) >> (sizeof(un... | 1,330,252 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
/*
Napisać program tworzący dynamicznie (po pobraniu od użytkownika wartości
naturalnych M i N) dwie tablice wartości rzeczywistych o długościach
odpowiednio M i N. Program pobiera od użytkownika zawartość tablic, a
następnie wypisuje najpierw wartości nal... | 1,330,253 |
the-stack-v2-dedup | C | _OBJC_CLASS_$_TKCapabilitiesManager
_OBJC_CLASS_$_TKPickerDividerItem
_OBJC_CLASS_$_TKPickerItem
_OBJC_CLASS_$_TKPickerOutlineView
_OBJC_CLASS_$_TKPickerPopUpButton
_OBJC_CLASS_$_TKPickerPopUpButtonCell
_OBJC_CLASS_$_TKPickerRowItem
_OBJC_CLASS_$_TKPickerSectionItem
_OBJC_CLASS_$_TKPickerSelectableItem
_OBJC_CLASS_$_TK... | 1,330,254 |
the-stack-v2-dedup | C | #ifndef LOAD_TEXTURE
#define LOAD_TEXTURE
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h> // windows before gl
#endif
#include <GL/glew.h> // glew before gl
#include <GL/gl.h>
/// @return allocated GL textureID for texture given by 'filename'
GLuint loadTextureDDS(const char *filename);
... | 1,330,255 |
the-stack-v2-dedup | C | #include "cmd-obtener-receta.h"
void cmd_obtener_receta_exec(t_command* comando){
if(!cmd_obtener_receta_validate(comando)){
char* uso = cmd_obtener_receta_uso();
printf("Los parametros ingresados no son validos.\n");
printf("Uso: %s", uso);
free(uso);
return;
}
char* ip = strdup(config_get_string_value... | 1,330,256 |
the-stack-v2-dedup | C | /*
* Copyright (C) 1997, 98 Kunihiro Ishiguro
* Copyright (C) 2015-2016 Hewlett Packard Enterprise Development LP
*
* GNU Zebra 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 yo... | 1,330,257 |
the-stack-v2-dedup | C | /*
* Header file for autocode.h
* --------------------------
* This file actually is written by hand.
*/
#ifndef _AUTOCODE_H_
#define _AUTOCODE_H_
#include <stdint.h>
#include "comm.h"
void init_auto(void);
void loop_auto(void);
void callback_get_descriptor_auto(const comm_callback_descriptor* cb, void* argbuf_... | 1,330,258 |
the-stack-v2-dedup | C | //Jack Gentsch, Jacky Wang, Chinh Bui
//Lab 2: C Program
//EE 469 with James Peckol 4/8/16
#include <stdio.h>
#define S2L 4791 // air miles from Seattle to London
#define HEAD_WIND 89.6 // head wind speed in mph
// function prototypes
float getDuration(void);
float computeVelocity(float distance, float duration);... | 1,330,259 |
the-stack-v2-dedup | C | //============================================================================
// Author : Xiaokang Guo, Nov 17 2018, xg590@nyu.edu
// Copyright : You are free to do anything about it
// Description : This is a pure C version of Dr. Robert A. Pilgrim's C# imple-
// mentation. His original C# code i... | 1,330,260 |
the-stack-v2-dedup | C | #if defined(__cplusplus)
extern "C" {
#endif
#if defined(LV_CONF_INCLUDE_SIMPLE)
#include "lv_conf.h"
#else
#include "../../../lv_conf.h"
#endif
#if LV_USE_LINE != 0
#include "../lv_core/lv_obj.h"
typedef struct
{
const lv_point_t * point_array;
uint16_t point_num;
uint8_t auto... | 1,330,261 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: ... | 1,330,262 |
the-stack-v2-dedup | C | #include "pabstract.h"
#include "pintobject.h"
#include "plongobject.h"
#include "pstringobject.h"
#include "piterobject.h"
#include "ptupleobject.h"
#include "pmethodobject.h"
#include "pclassobject.h"
#include "pfuncobject.h"
/*** This file is translated from the original 'abstract.c', see comments
in the orig... | 1,330,263 |
the-stack-v2-dedup | C | #ifndef _ALL_H
#define _ALL_H
#include "stm32f10x.h"
#include "math.h"
#define fp64 double
#define fp32 float
#define PI 3.14159265359
#include "compass.h"
#include "guide.h"
#include "mecanum.h"
#include "Command.h"
#include "MyTypeDef.h"
#include "init.h"
#include "can.h"
#include "can_dat... | 1,330,264 |
the-stack-v2-dedup | C | /*
S p h e r e . h
$Header: Sphere.h,v 1.0 91/10/04 17:01:02 rthomson Exp $
This technique is totally dumb and lame, but it works :-). It
should really be replaced with code from Graphics Gems that
tesselates the sphere evenly to produce the desired accuracy.
Rich Thomson
Design S... | 1,330,265 |
the-stack-v2-dedup | C | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | 1,330,266 |
the-stack-v2-dedup | C | #define build2
#ifdef build1
#include <stdio.h>
#define swap1(a,b)\
{ \
int temp=a; \
a=b; \
b=temp; \
}
#define swap2(a,b) \
{ \
a=a+b; \
b=a-b; \
a=a-b; \
}
#define swap3(a,b)\
{ \
a=a^b; \
b=a... | 1,330,267 |
the-stack-v2-dedup | C | #include <stdio.h>
#define MAXLEN 25
#define KAIBUN 1
#define NOKAIBUN 0
int main()
{
char word[MAXLEN];
int i,c, len, state;
state = KAIBUN;
i = 0;
while((c = getchar()) != EOF && c != '\0' && c != '\n') {
word[i] = c;
i++;
}
word[i] = '\0';
len = i;
for (i = ... | 1,330,268 |
the-stack-v2-dedup | C | /*****************************************************************************/
/** Ejemplo de un posible fichero de cabeceras ("header.h") donde situar **/
/** las definiciones de constantes, variables y estructuras globales. Los **/
/** alumos deberán adaptarlo al desarrollo de su propio compilador. **/
... | 1,330,269 |
the-stack-v2-dedup | C | /*
* ESPRESSIF MIT License
*
* Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to dea... | 1,330,270 |
the-stack-v2-dedup | C | /* Copyright(C)
* For free
* All right reserved
*
*/
/**
* @file cb_test_lib2.c
* @brief
* @author zheng.cuizh@gmail.com
* @version 0.1.0
* @date 2011-01-12
*/
#include "cbenchmark.h"
void* initialize(void* p)
{
middleware_t *mw = (middleware_t *)p;
bench_t *bp = mw->bp;
printf("Hello from cb_test_li... | 1,330,271 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
int degree;
printf("please enter your degree :");
scanf("%d",°ree);
if(degree >= 90 && degree <= 100)
printf("exlante!");
else if (degree >=80 && degree <90)
printf("very good!");
else if (degre... | 1,330,272 |
the-stack-v2-dedup | C | #pragma once
#include<stdbool.h>
#include<stdio.h>
#include"queue.h"
#include"stack.h"
//bunch of macros to get easy access to the virtualmap without the use of multiple switch cases/if statements
#define west(x,y) virtualmap[x][y-1]
#define south(x,y) virtualmap[x+1][y]
#define east(x,y) virtualmap[x][y+1]
... | 1,330,273 |
the-stack-v2-dedup | C | //! @file main.c
//! @brief Main logic for 7-Min
//!
//! File contains all logic for 7-Min Workout Pebble application.
//! The program runs much like a timer, simply logging the start time, offsetting it each time
//! it is paused or resumed, and then calculating all figure states based off the difference
//! between t... | 1,330,274 |
the-stack-v2-dedup | C | /*---------------------------------------------------------------------------*/
/* */
/* File: PDIM.C */
/* */
... | 1,330,275 |
the-stack-v2-dedup | C | //produsul numerelor "pivot" intr-o matrice
#include<stdio.h>
#include<conio.h>
int main()
{
int a[50][50], n, i, j, x, p = 1, ok;
scanf("%d", &n);
for (i = 1; i <= n; i++)
for (j = 1; j <= n; j++)
scanf("%d", &a[i][j]);
for (j = 2; j <= n; j++)
{
if (a[1][j] % a[1][1] == 0)
{
ok = 0;
x = a[1][j] / ... | 1,330,276 |
the-stack-v2-dedup | C | /*
* audio_evmInit.c
*
* This file contains Audio application related EVM (platform) specific routines
* implementation.
* This is part of the EVM Initialization library (evmInit) which contains pinmux
* enabling routines for peripherals used by the application, and may contain
* related device pre-driver init... | 1,330,277 |
the-stack-v2-dedup | C | /*
* console.h
*
* Created on: Nov 30, 2017
* Author: Administrator
*/
#ifndef SOURCE_CONSOLE_CONSOLE_H_
#define SOURCE_CONSOLE_CONSOLE_H_
void* Console_TaskMain(void* pArg);
void* uart_TaskMain(void* pArg);
void Console_msgParser(char *command);
#endif /* SOURCE_CONSOLE_CONSOLE_H_ */
| 1,330,278 |
the-stack-v2-dedup | C |
#include <stdio.h>
#include <unistd.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#include <arpa/inet.h>
#define PORT 787
int main(int argc, char const *argv[])
{
struct sockaddr_in address;
int sock = 0, valread;
struct sockaddr_in serv_addr;
char *hello =... | 1,330,279 |
the-stack-v2-dedup | C | #include "assembler.h"
#include "strmap.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
// maximum length of a string required in a program
#define MAX_LEN (256)
// length of a SIC instruction in bytes
#define INSTRCTN_LEN_BYTES 3
// hash table for the opcode ta... | 1,330,280 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include "calcul.h"
#include "print.h"
int main()
{
long pag_carte;
long unsigned nr_cifre;
int i, n, k;
time_t t;
n=10;
srand((unsigned) time(&t));
for( i = 0 ; i < n ; i++ )
{
printf("\ntestul numarul %d\n", i+1);
nr_cifre=rand... | 1,330,281 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h> /* exit( ) で必要 */
void main(void);
void main(void) /* この部分訂正 */
{
int c;
/* long 型整数の初期化には L を付ける */
long sign = 1L, result = 0L, temp = 0L;
printf("16 進数を入力して下さい\t");
while ((c = getchar( )) != '\n') {
switch (c) {
case ' ': ... | 1,330,282 |
the-stack-v2-dedup | C | #pragma once
#include <stdint.h>
// System.Collections.Generic.List`1<MeleeWeaponTrail/Point>
struct List_1_t5126;
// MeleeWeaponTrail/Point
struct Point_t5125;
// System.ValueType
#include "mscorlib_System_ValueType.h"
// System.Collections.Generic.List`1/Enumerator<MeleeWeaponTrail/Point>
struct Enumerator_t5880
{
... | 1,330,283 |
the-stack-v2-dedup | C | #ifndef CDRAWABLE_H
#define CDRAWABLE_H
#include <allegro.h>
#include "CPosition.h"
#include <assert.h>
typedef struct
{
ALLEGRO_BITMAP *i;
CPosition_t p;
}CDrawable_s;
typedef CDrawable_s *CDrawable_t;
CDrawable_t new_CDrawable(const char *i, CPosition_t p);
void CDrawable_Draw(CDrawable_t self);
void del_CD... | 1,330,284 |
the-stack-v2-dedup | C | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | 1,330,285 |
the-stack-v2-dedup | C | // AVP Prague stamp begin( Interface header, )
// -------- Monday, 29 October 2007, 10:05 --------
// File Name -- (null)i_reportdb.cpp
// Copyright © Kaspersky Lab 1996-2006.
// -------------------------------------------
// AVP Prague stamp end
// AVP Prague stamp begin( Header ifndef, )
#if !defin... | 1,330,286 |
the-stack-v2-dedup | C |
#define TASKS
#define FINAL
#define INTERPRETER
//#define DEBUG
#define SYSTICK
#define SWITCHPRI 1
| 1,330,287 |
the-stack-v2-dedup | C | #ifndef FILE_PARSER_INCLUDED
#define FILE_PARSER_INCLUDED
#include "command.h"
// Parse a command line string.
struct Command *parse_command(char* command_line);
// Free a Command structure created by the parser.
void parser_free_command(struct Command *result);
#endif /* !FILE_PARSER_INCLUDED */
| 1,330,288 |
the-stack-v2-dedup | C | /**************************************************************************
Copyright 2006 Stephane Marchesin
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 restrict... | 1,330,289 |
the-stack-v2-dedup | C | // libssl-dev libmariadbclient-dev
// gcc connect100.c -o connect100 -I/usr/include/mysql/ -L/lib/x86_64-linux-gnu/ -lmariadbclient -lz -lcrypt -lnsl -lm -lpthread -lssl -lcrypto -ldl `mysql_config --cflags --libs`
#include <my_global.h>
#include <mysql.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#in... | 1,330,290 |
the-stack-v2-dedup | C | int main(int argc, char* argv[])
{ int year,month,day,weekday;
int total=0,total1=0;
int i;
int monthday[2][12]={{31,28,31,30,31,30,31,31,30,31,30,31},
{31,29,31,30,31,30,31,31,30,31,30,31}};
scanf("%d %d %d",&year,&month,&day);
year = year%400 + 400;
for(i=1;i<year;i++)
{
if((... | 1,330,291 |
the-stack-v2-dedup | C | #ifndef _FLY_QUIC_INTERFACE_H_
#define _FLY_QUIC_INTERFACE_H_
#include "fly_quic_api.h"
//#include "fly_quic_session.h"
extern "C" {
extern void *fly_quic_create_session(struct FlyQuicSessionConfig *config);
extern int fly_quic_start_quic_ok(void *session);
extern int fly_quic_send_pkt(void *session,char *bu... | 1,330,292 |
the-stack-v2-dedup | C | #define INITGUID
#include <guiddef.h>
#include <tcguid.h>
| 1,330,293 |
the-stack-v2-dedup | C | #ifndef XORSHIFTK5_H
#define XORSHIFTK5_H
// adapted from code by Piotr Stefaniak
/* George Marsaglia,
https://groups.google.com/d/msg/comp.lang.c/qZFQgKRCQGg/rmPkaRHqxOMJ */
#include "splitmix64.h"
static uint32_t xorshift_k5_x, xorshift_k5_y, xorshift_k5_z, xorshift_k5_w,
xorshift_k5_v;
static inline void... | 1,330,294 |
the-stack-v2-dedup | C |
void MinaWMikhael();
| 1,330,295 |
the-stack-v2-dedup | C | #include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/version.h>
MODULE_DESCRIPTION("User space communication");
MODULE_AUTHOR("Guan-Han Wu");
MODULE_LICENSE("GPL");
static int init_usercomm_module(void)
{
pr_info("Initialize module\n");
return 0;
}
static void exit_usercomm_... | 1,330,296 |
the-stack-v2-dedup | C |
/* *
* PROGETTO MISURA SFORZO IN CAMMINATA *
* REALIZZATO PER FACOLTA' SC. MOTORIE *
* URBINO *
*
* DATA: 12/04/2012 *
* REV: 00. REL 00: acq da singolo sensore *
* DATA: 15/0... | 1,330,297 |
the-stack-v2-dedup | C | #include <stdio.h>
void fact(int, int);
int main()
{
int x, n;
scanf("%d,%d", &x, &n);
fact(x, n);
return 0;
}
void fact(int x, int n)
{
static int sum = 0;
if (n==0)
{
printf("%d", sum);
return 0;
}
sum += x * n;
fact(x, n - 1);
} | 1,330,298 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#define COPYMORE 0644
void error(char *, char *);
int copyFiles(int buff,char *src, char *dest);
/*inicio de funcion principal, tiene 2 argumentos:
... | 1,330,299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.