source
string
code_lang
string
content
string
idx
int64
the-stack-v2-dedup
C
#include <asm/io.h> #include <asm/arch/at91_wdt.h> #include <common.h> #include <div64.h> #include <dm.h> #include <errno.h> #include <wdt.h> #define WDT_SEC2TICKS(s) (((s) << 8) - 1)
1,331,300
the-stack-v2-dedup
C
/* * ===================================================================================== * * Filename: Orion_Mod9_hw8_task1.c * Usage: ./Orion_Mod9_hw8_task1.c * Description: 2 strings for input parameters * * Version: 1.0 * Created: 03/23/2017 04:18:16 PM * Compiler:...
1,331,301
the-stack-v2-dedup
C
#include <getopt.h> #include <stdio.h> #include <unistd.h> #include <libc/readdir.h> #include <libc/traceme.h> #include <string.h> #include <stdint.h> #include <libc/socket.h> #include <libc/endian.h> #include <libc/waitpid.h> #include <alloca.h> #include <ctype.h> #include <stdlib.h> static int eval_line(char* line);...
1,331,302
the-stack-v2-dedup
C
/******************************************************************************* * File Name: LED_15_0.h * Version 2.20 * * Description: * This file contains Pin function prototypes and register defines * * Note: * ******************************************************************************** * Copyright 2008-2015...
1,331,303
the-stack-v2-dedup
C
#include <stdio.h> #include <sys/time.h> long fib(int num) { if (num <= 1) return 1; else return fib(num - 1) + fib(num -2); } long getCurrentTime() { struct timeval tv; gettimeofday(&tv, NULL); return tv.tv_sec * 1000 + tv.tv_usec / 1000; } int main(void) { long start, end; ...
1,331,304
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_ultimate_ft.c :+: :+: :+: ...
1,331,305
the-stack-v2-dedup
C
#include "lapi.h" #include "lauxlib.h" #include "lcode.h" #include "lctype.h" #include "ldebug.h" #include "ldo.h" #include "lfunc.h" #include "lgc.h" #include "llex.h" #include "llimits.h" #include "lmem.h" #include "lobject.h" #include "lopcodes.h" #include "lopnames.h" #include "lparser.h" #include "lprefix.h" #incl...
1,331,306
the-stack-v2-dedup
C
#define _GNU_SOURCE 1 #include "config.h" #include <stdio.h> #include <stdlib.h> #include <minc.h> #include <limits.h> #include <float.h> #if HAVE_UNISTD_H #include <unistd.h> #endif #define FUNC_ERROR(x) (fprintf(stderr, "On line %d, function %s failed unexpectedly\n", __LINE__, x), ++errors) #define TST_X 0 #define...
1,331,307
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,331,308
the-stack-v2-dedup
C
#include "client.h" /** * Function that makes the ips that will connect to the server */ void makeIp() { char *firstPart = "http://"; char *secondPartImage = "/Api/Analyze"; char* secondPartStop = "/Api/Stop"; serverImageLink = malloc(strlen(firstPart) + strlen(serverIp) + strlen(secondPartImage) +...
1,331,309
the-stack-v2-dedup
C
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <assert.h> #include <exception> // System.Text.RegularExpressions.Interpreter/RepeatContext struct RepeatContext_t_1915870612_0; #include "codegen/il2cpp-codegen.h" // Syst...
1,331,310
the-stack-v2-dedup
C
#include <Arduino.h> #include "pins.h" #include "lcd.h" char disp_0[] = {1, 1, 1, 1, 1, 1, 0, 0}; char disp_1[] = {0, 1, 1, 0, 0, 0, 0, 0}; char disp_2[] = {1, 1, 0, 1, 1, 0, 1, 0}; char disp_3[] = {1, 1, 1, 1, 0, 0, 1, 0}; char disp_4[] = {0, 1, 1, 0, 0, 1, 1, 0}; char disp_5[] = {1, 0, 1, 1, 0, 1, 1, 0}; char disp_6...
1,331,311
the-stack-v2-dedup
C
#ifndef _MAIN_H #define _MAIN_H #include <arpa/inet.h> #include <sys/types.h> #include <sys/socket.h> #include <bsd/stdlib.h> #include <netinet/in.h> #include <ctype.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> struct server_info { int debu...
1,331,312
the-stack-v2-dedup
C
#include "fun.h" /* Fonctions affines */ double fun_zero(double x) { x = x; return 0; } double fun_cst (double x) { x = x; return 1; } double fun_dcst(double x) { x = x; return 0; } double fun_d2cst(double x) { x = x; return 0; } double fun_lin(double x) { return x; } double fun_dlin(double x) { x=x; return 1; } dou...
1,331,313
the-stack-v2-dedup
C
#ifndef DEMOKIT01_H #define DEMOKIT01_H #include <stdint.h> #include <stdbool.h> #define LED_OFF 0 #define LED_ON 1 #define LED_R1_SET(value) Cy_GPIO_Write( P10_0_PORT, P10_0_PIN, value ) #define LED_R1_INV Cy_GPIO_Inv( P10_0_PORT, P10_0_PIN ) #define LED_R2_SET(value) Cy_GPIO_Write( P11_5_PORT, P11_5_PIN, v...
1,331,314
the-stack-v2-dedup
C
#include<stdio.h> int main() { int c; char msg[140]; char words[50][100]; int i=0; int nc; int j; while(1) { scanf("%s", &words[i++]); if((scanf("%s", &words[i++])) == EOF) break; } for(j=0;j<i; j++) { printf("%s\n", words[j]); } return 0; }
1,331,315
the-stack-v2-dedup
C
// // main.c // sorting // // Created by ark on 03/10/2018. // Copyright © 2018 ark. All rights reserved. // #include <stdio.h> int main(void) { int i,j; // 반복문을 위한 변수 int list[10]; // 값을 입력받을 배열 int temp; printf("10개의 정수를 입력받겠습니다.\n"); for (i=0;i<10;i++) { printf("%d번째 정수를 입력하세요."...
1,331,316
the-stack-v2-dedup
C
#include <iostream> //Problema 3 de la tarea 5. void Prob3(){ TFile *file = TFile::Open("trig_run009776_00692.root"); TTree *arbol = (TTree*) file -> Get("XCDF"); float TDCtoNS = 0.1; //1 canal de TDC es aproximadamente 1 ns. Int_t entradas = arbol->GetEntries(); Int_t HitsMax = 2000; //Supo...
1,331,317
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <unistd.h> // for fork() #include <sys/types.h> // for pid_t #include <sys/wait.h> // for waitpid() int main() { pid_t cpid1, pid; cpid1 = fork(); if(cpid1 < 0) { // only parent exists if this happens printf("ERROR in forki...
1,331,318
the-stack-v2-dedup
C
/*=========================================================================== Copyright (c) 2010-2012 Qualcomm Technologies, Inc. All Rights Reserved. Qualcomm Technologies Proprietary and Confidential. ===========================================================================*/ #include <fcntl.h> #include <u...
1,331,319
the-stack-v2-dedup
C
/* A Bison parser, made by GNU Bison 3.0.4. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2015 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 t...
1,331,320
the-stack-v2-dedup
C
#include<stdio.h> #include<stdlib.h> typedef struct node{ struct node* next; int data; }NODE; int comp = 0; NODE* getNode(int data){ NODE* t = (NODE*)malloc(sizeof(NODE)); t->data = data; t->next = NULL; } void insert(NODE* head, int data){ NODE* t = getNode(data); NODE* p = head; while...
1,331,321
the-stack-v2-dedup
C
// vim: foldmethod=syntax #include <stdio.h> #include <stdlib.h> #include <ncurses.h> #include <string.h> #include "todo.h" int main(int argc, char *argv[]) { Params *params = parse(argc, argv); switch (params->command) { case ADD: if (add(params->value) != -1) { printf("added a task %s\n", params->value);...
1,331,322
the-stack-v2-dedup
C
#ifndef __COMPUTATION_COMPUTATION_H__ #define __COMPUTATION_COMPUTATION_H__ #include <computation/geometry/geometryhead.h> #include <computation/linear/linearhead.h> #include <computation/sample/samplehead.h> #endif
1,331,323
the-stack-v2-dedup
C
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C)2013 Semtech Description: SX1276 driver specific target board functions implementation Lic...
1,331,324
the-stack-v2-dedup
C
/* * File: main.c * Author: Darren * * Created on November 11, 2015, 2:12 PM */ #include <stdio.h> #include <stdlib.h> /* * */ typedef struct{ //defines the structure int ID; char studentname[20]; int proj; int exam; float final; }student; student **create_class_list(ch...
1,331,325
the-stack-v2-dedup
C
#include "include/i2c.h" #include<avr/io.h> void I2CInit(int bitRatekHz){ TWBR = (uint8_t) (((F_CPU/1000)/bitRatekHz) - 16)/2; TWSR = 0x00; //Prescaller = 0 TWCR = 1<<TWEN; //Enable TWI } void I2CStart(){ TWCR = (1<<TWINT) | (1<<TWSTA) | (1<<TWEN); //S...
1,331,326
the-stack-v2-dedup
C
#ifndef WDT_H #define WDT_H #include "config.h" typedef struct tagWDTCounters { uint32_t cnt; // —четчик uint32_t lim; uint8_t fl_on; char mes[15]; }WDT_COUNTER; extern WDT_COUNTER WDT_cnt[WDT_COUNTERS_NUM]; void WDTCountersInc(void); #if(_WDT_LPC_) void InitWDT(void); void ResetWDT(void); ...
1,331,327
the-stack-v2-dedup
C
/* This file is part of the Pratt program source code Copyright 1996 Inge Jonassen, Dept. of Informatics University of Bergen. email: inge@ii.uib.no More information on Pratt: http://www.ii.uib.no/~inge/Pratt.html */ /* Program to compute the minimum spanning tree of a complete graph represented by ...
1,331,328
the-stack-v2-dedup
C
// // Created by ludger on 14.01.18. // #ifndef FLIGHTMANAGER_SERIALPORT_H #define FLIGHTMANAGER_SERIALPORT_H extern const char* navigationQueueName; void init(); void addSerialSubscriber(); void removeSerialSubscriber(); #endif //FLIGHTMANAGER_SERIALPORT_H
1,331,329
the-stack-v2-dedup
C
#ifndef Slopes_h #define Slopes_h extern const uint8_t SLOPES[][512]; #endif
1,331,330
the-stack-v2-dedup
C
/* ** EPITECH PROJECT, 2021 ** B-MUL-200-LYN-2-1-mydefender-florian.gibault ** File description: ** evetnts_editor_menu */ #include "my_defender.h" void editor_menu_events(gen_t *prm) { if (triforce(prm->event, prm->edit_menu->home, prm->sound->btn_press)) prm->game_step = HOME; for (int i = 0; i < pr...
1,331,331
the-stack-v2-dedup
C
/*********************************************************************************************************************** * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file * will be overwritten if the respective MCUXpresso Config Tools is used to update this file. **********...
1,331,332
the-stack-v2-dedup
C
// Copyright 2020 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <assert.h> #include <fcntl.h> #include <signal.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h>...
1,331,333
the-stack-v2-dedup
C
#include <stdio.h> int main(void) { // 変数の宣言 int num = -78; // 数値の符号を調べる if (num > 0) printf("%dは正", num); else if (num == 0) printf("%d は0", num); else printf("%dは負", num); return 0; }
1,331,334
the-stack-v2-dedup
C
#include <stdlib.h> #include <stdio.h> // the purpose of this code is to call exit function void riskyCode() { printf("Calling exit from C code\n"); exit(1); }
1,331,335
the-stack-v2-dedup
C
#ifndef _BELONDEF_H_ #define _BELONDEF_H_ #define CONTENT_DIR "OPEN04\\" #define BELONGS_TO_WAVE "BELONGS.WAV" #define ENTER_NAME_WAVE "ENTER.WAV" #define EDIT_TIMER 2 #define EDIT_TIMEOUT 2000 // 2 seconds #endif // _BELONDEF_H_
1,331,336
the-stack-v2-dedup
C
/* Compiler.h : Compiler specific defines and pragmas 2023-04-02 : Igor Pavlov : Public domain */ #ifndef ZIP7_INC_COMPILER_H #define ZIP7_INC_COMPILER_H #if defined(__clang__) # define Z7_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) #endif #if defined(__clang__) && defined(...
1,331,337
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_memccpy.c :+: :+: :+: ...
1,331,338
the-stack-v2-dedup
C
#include "str.h" #include "rnd.h" //extern void sha256(const uint8_t *data, size_t size, uint8_t *md); int ran_dint(int start, int end) { if (start < end) { return (rand() % (abs(end - start) + 1)) + start; } if (start > end) { return (rand() % (abs(end - start) + 1)) + end; } return start; } int randint_te...
1,331,339
the-stack-v2-dedup
C
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <pthread.h> #include "salloc.h" int main(int argc, char *argv[]) { int ret; int size; void *x1, *x2, *x3, *x4, *x5, *x6; // object pointers if (argc != 2) { printf("usage: app <size in KB>\n"); exit(1); } size = atoi(argv[1]); ret = s_c...
1,331,340
the-stack-v2-dedup
C
#include "shell.h" #include "stdint.h" #include "file.h" #include "ioqueue.h" #include "print.h" #include "string.h" #include "assert.h" #include "syscall.h" #include "global.h" #include "file.h" #include "buildin_cmd.h" #include "stdio.h" #define cmd_len 512 //最大支持键入128个字符的命令行输入 #define MAX_ARG_NR 16 //加上命令外,最多支持...
1,331,341
the-stack-v2-dedup
C
/*++ BUILD Version: 0001 * * WOW v1.0 * * Copyright (c) 1991, Microsoft Corporation * * WKMAN.H * WOW32 16-bit Kernel API support (manually-coded thunks) * * History: * Created 27-Jan-1991 by Jeff Parsons (jeffpar) * 30-Apr-91 mattfe added WK32CheckLoadModuleDrv * 26-Aug-91 mattfe added ...
1,331,342
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> typedef struct { unsigned start; unsigned end; int sum; } max_subarray; max_subarray find_maximum_subarray(int A[], unsigned int length) { int i; int local_start = 0, local_sum = 0; max_subarray best; best.sum = -INT_MAX; for (i = 0; i < length; i++) { local_sum += A...
1,331,343
the-stack-v2-dedup
C
#ifndef __PRE_COMPILED_H__ #define __PRE_COMPILED_H__ #include <memory> #include <cstring> #include "NonCopyable.hpp" #endif // __PRE_COMPILED_H__
1,331,344
the-stack-v2-dedup
C
#include <stdio.h> void TowerOfHanoiFunction(char frompeg, char topeg, char auxpeg, int num) { if (num <= 0) printf("No disks to transfer. Stop playing pranks \n"); else if (num == 1) printf("Move disk 1 from %c to %c \n", frompeg, topeg); else { TowerOfHanoiFunction(frompeg, au...
1,331,345
the-stack-v2-dedup
C
// program to convert infix exp. to postfix exp. with parenthesis using stack /* ALGO 1. Scan the infix expression from left to right. 2. If the scanned character is an operand, output it. 3. Else, 1 If the precedence of the scanned operator is greater than the precedence of the operator ...
1,331,346
the-stack-v2-dedup
C
#pragma GCC optimize ("O3") #include<stdio.h> #include<string.h> #include<stdlib.h> #pragma GCC optimize ("O3") int bs[1000005]; int id[1000005]; const int type=4; int bos(int k){ int tmp=bs[k]; if(k!=tmp){ bs[k]=bos(bs[k]); id[k]=(id[k]+id[tmp])%type; } return bs[k]; ...
1,331,347
the-stack-v2-dedup
C
#include "def.h" #include "gd_net_def.h" //创建卷 DEFINE_MESSAGE_BEGIN(GD_CreateVolume) char name_[MaxVolumeNameSize]; void Clear() { memset(this, 0, sizeof(*this)); } DEFINE_MESSAGE_END //删除卷 DEFINE_MESSAGE_BEGIN(GD_DeleteVolume) char name_[MaxVolumeNameSize]; void Clear() { memset(this, 0, sizeof(*this)); ...
1,331,348
the-stack-v2-dedup
C
#include <stdio.h> #include "e6809.h" #include "vecx.h" /* code assumptions: * - it is assumed that an 'int' is at least 16 bits long. * - a 16-bit register has valid bits only in the lower 16 bits and an * 8-bit register has valid bits only in the lower 8 bits. the upper * may contain garbage! *...
1,331,349
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,331,350
the-stack-v2-dedup
C
int chazhao(int value[],int x) { int sz=sizeof(value)/sizeof(value[0]); int left=0,right=sz-1; while(left<=right) { int mid=(left+right)/2; if(value[mid]<x) { left=mid+1; } else if(value[mid]<x) { right=mid-1; } else { return value[mid]; } } if(left>right) return -1; }
1,331,351
the-stack-v2-dedup
C
#include <ansi.h> #define myself this_player() static string i; reset(arg) { if(arg) return; /* Initialization code goes here */ } query_auto_load() { return "/players/trix/closed/obj/tool.c:"; } long() { write( "L'urlo!!!\n" ); return 1; } short() { string who; who=this_pl...
1,331,352
the-stack-v2-dedup
C
#ifndef network_delay_H #define network_delay_H #include "common.h" #include "graph.h" #include "res.h" #include <ilcplex/ilocplex.h> //不允许分流的规划,因为这里有x[d]=IloIntVarArray(environment,g->m,0,1); //使得x[d][i]是0,1变量 double network_delay(DelayNetworkGraph *g,vector<Req*> &reqL) { IloEnv environment; IloModel model(envir...
1,331,353
the-stack-v2-dedup
C
/* * jhd_shm.h * * Created on: May 30, 2018 * Author: root */ #ifndef JHD_SHM_H_ #define JHD_SHM_H_ #include <jhd_config.h> #include <jhd_event.h> #include <jhd_core.h> typedef struct jhd_shm_s jhd_shm_t; struct jhd_shm_s { u_char *addr; size_t size; jhd_queue_t queue; } ; ...
1,331,354
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <unistd.h> #include <ctype.h> #include <string.h> #include <ctype.h> #include <time.h> #define MAX_MES_SIZE 400 #define RCVBUFSIZE 2450 /* Size of receive buffer */ #define OUTBUFSIZE 2431 #define LETTERSIZE 26 #define BACONSIZE 6 // Estructur...
1,331,355
the-stack-v2-dedup
C
#include<stdio.h> int main(int argc, char *argv[]) { int k=0; float m,n,f,t,x=0,p=0,c; scanf("%f%f%f%f%f",&m,&n,&t,&f,&c); x=t*m; next: p=(x/(n-m)); if((p*n)>=c) { printf("%d",k); goto dk; } else { k++; x=x+(2*p*m+f*m); goto next; } dk: return(0); }
1,331,356
the-stack-v2-dedup
C
#include "inputOutput.h" #include <stdio.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <mpfr.h> #include <unistd.h> #include "utils.h" /** * Read from a given file and put the read lines in arrayToFill and the condition number in "cond". * arrayToFill and cond must be i...
1,331,357
the-stack-v2-dedup
C
// C02EX09.C #include <stdio.h> int main(void) { char PAUSA; float NFS = 0.0F; double NFD = 0.0; float NPF = 0.0F; printf("Informe um valor de ponto flutuante simples: "); scanf("%f", &NFS); while ((getchar() != '\n') && (!EOF)); printf("Valor %.20f igual a %e em exponencial.\n", NFS,...
1,331,358
the-stack-v2-dedup
C
#include "functions.h" /*********************************************************************************************** while array, Linked List, Stack, and Queue is a linear data structure, trees are a non-linear data structure. How should I decide which data structure use? -> What needs to be stored ? ...
1,331,359
the-stack-v2-dedup
C
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <windows.h> #include <stdlib.h> #include <math.h> #include <conio.h> #define WIDTHBYTES(bits) (((bits)+31)/32*4) #define BYTE unsigned char void bmpBWrw() { FILE *infile; if ((infile = fopen("Pentagon.bmp", "rb")) == NULL) { printf("No Image File")...
1,331,360
the-stack-v2-dedup
C
#include "geminc.h" #include "gemprm.h" #include "scnfll.h" int cgrynxt ( int cnt, int iy[], int k, int *iret ); /* NOTE: This function is currently NOT used. * Can it be trashed? */ int cgrynxt ( int cnt, int iy[], int k, int *iret ) /************************************************************************ *...
1,331,361
the-stack-v2-dedup
C
#include "../c-mpi.h" int mpi_orth_mgs_lvl2_cwy_threesynch_append1(int mloc, int i, double *A, int lda, double *T, int ldt, double *r, MPI_Comm mpi_comm){ if( i == 0){ r[0] = cblas_ddot(mloc,A,1,A,1); MPI_Allreduce( MPI_IN_PLACE, &(r[0]), 1, MPI_DOUBLE, MPI_SUM, mpi_comm); r[0] = sqrt(r[0]); cblas_dscal(mlo...
1,331,362
the-stack-v2-dedup
C
Bonastre|CEIP l'Estel|Carrer Muralla, s/n|1711Q|A|ZZ||
1,331,363
the-stack-v2-dedup
C
/** * @file * */ #include "inv/SoOffscreenRenderer.H" #include "inv/nodes/SoGroup.H" //#include <iostream> //using std::cout; //using std::endl; #include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "dsm/EDSIFactory.H" #include "dsm/ChemistryTask.H" #include "dsm/Resource.H" #include "uti...
1,331,364
the-stack-v2-dedup
C
#ifndef __CHOLMODMACRO_H_ #define __CHOLMODMACRO_H_ struct pym_rb_statedep_t; inline void SET_TRIPLET_RCV(cholmod_triplet *choltrip, int _r, int _c, double _v) { unsigned int *r = (unsigned int *)(choltrip->i) + choltrip->nnz; unsigned int *c = (unsigned int *)(choltrip->j) + choltrip->nnz; double ...
1,331,365
the-stack-v2-dedup
C
HANDLE_OPCODE(OP_CONST_WIDE_32 /*vAA, #+BBBBBBBB*/) { u4 tmp; vdst = INST_AA(inst); tmp = FETCH(1); tmp |= (u4)FETCH(2) << 16; ILOGV("|const-wide/32 v%d,#0x%08x", vdst, tmp); SET_REGISTER_WIDE(vdst, (s4) tmp); } FINISH(3); OP_END
1,331,366
the-stack-v2-dedup
C
/****************************************************************************** * Copyright (C) 2009-2016, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************* */ #include "unicode/utypes.h" #if U_PLATFOR...
1,331,367
the-stack-v2-dedup
C
/** * Escreva um programa que leia o numero de alunos e de alunas de uma sala. * Como saida, o programa deve apresentar o numero de alunos, de alunas e o total de alunos na sala. */ #include<stdio.h> void main(){ int qtdAlunos, qtdAlunas, total; printf("Digite a quantidade de alunos:\n"); scanf("%i", &qt...
1,331,368
the-stack-v2-dedup
C
#include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #define PYTHON_CLASS_FORMAT "from ctypes import *\n\nclass %s(Structure):\n _fields_ = [\n%s ]\n" const char pythontype[][16] = { "c_ubyte", // 0 "c_ushort", // 1 "c_uint", // 2 "c_ulonglong", ...
1,331,369
the-stack-v2-dedup
C
/* * Copyright (c) 2006 Advanced Micro Devices, Inc. * * 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, modif...
1,331,370
the-stack-v2-dedup
C
/**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/ ...
1,331,371
the-stack-v2-dedup
C
/* mz_strm_buf.h -- Stream for buffering reads/writes part of the minizip-ng project This version of ioapi is designed to buffer IO. Copyright (C) Nathan Moinvaziri https://github.com/zlib-ng/minizip-ng This program is distributed under the terms of the same license as zlib. See the accompanying...
1,331,372
the-stack-v2-dedup
C
#include <stdio.h> #include <sys/socket.h> #include <netinet/in.h> // IPPROTO_UDP #include <arpa/inet.h> // inet_ntoa() #include <unistd.h> // close() #include <stdlib.h> // system() EXIT_FAILURE #include <string.h> // strchr() #include <time.h> #include <signal.h> #include "dns.h" #include "common.h" #include "dns-bu...
1,331,373
the-stack-v2-dedup
C
#include <AFMotor.h> #define lefts A0 #define rights A3 AF_DCMotor motor1(4,MOTOR12_8KHZ); AF_DCMotor motor2(3,MOTOR12_8KHZ); int a=1; void setup() { motor1.setSpeed(255); motor2.setSpeed(255); pinMode(lefts,INPUT); pinMode(rights,INPUT); Serial.begin(9600); } void loop() { Serial.print(digital...
1,331,374
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,331,375
the-stack-v2-dedup
C
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <termios.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <strings.h> #include <string.h> #include <limits.h> #include "link.h" #include "alarm.h" Settings *settings; Stats *stats; const int FLAG = 0x7E; const int A = 0x03...
1,331,376
the-stack-v2-dedup
C
/***************************************** Emitting C Generated Code *******************************************/ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <glib.h> #include <sys/time.h> int strcmp(const char *s1, const char *s2); int timeval_subtract(s...
1,331,377
the-stack-v2-dedup
C
/* ------------------------------------------------------------- */ /* This file is a portion of the Download FTP Client software. */ /* It is distributed under the MIT License, which is available */ /* in the root of this distribution and at the following URL: */ /* ...
1,331,378
the-stack-v2-dedup
C
/** * @file dataloaders.h * @author Sedrick Keh * @version 0.1 * @date 2019-06-26 * * @copyright Copyright (c) 2019 */ #pragma once #include "dataloader/linear/linearloader.h"
1,331,379
the-stack-v2-dedup
C
/* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferable use...
1,331,380
the-stack-v2-dedup
C
/* * helloac.c - hello autoconf - main executable */ /* should be first included file */ #include "helloac-config.h" #include <stdlib.h> #include <stdio.h> #include "fooac.h" int main(int argc, char **argv){ printf("Hello from %s:%u\n", __FILE__, __LINE__); printf("Program '%s' version: '%s'\n\n", PACKAGE, VERS...
1,331,381
the-stack-v2-dedup
C
/** @file pa_ecall_simu.h * * Legato @ref pa_ecall_simu include file. * * Copyright (C) Sierra Wireless Inc. */ #ifndef PA_ECALL_SIMU_H_INCLUDE_GUARD #define PA_ECALL_SIMU_H_INCLUDE_GUARD #include "pa_ecall.h" #define PA_SIMU_ECALL_DEFAULT_PSAP "+4953135409300" #define PA_SIMU_ECALL_DEFAULT_MAX...
1,331,382
the-stack-v2-dedup
C
#ifndef SERVICIOS_H_INCLUDED #define SERVICIOS_H_INCLUDED typedef struct { int id; char descripcion[25]; float precio; int isEmpty; } eServicio; /** * HardcodearServicios permite guardar datos hardcodeados en la estructura de servicios * @param eServicio permite guardar datos en la estr...
1,331,383
the-stack-v2-dedup
C
/* * Copyright (c) 2004-2007 High Performance Computing Center Stuttgart, * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2008 The Trustees of Indiana University. * All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * ...
1,331,384
the-stack-v2-dedup
C
// // I3GistRouting.h // BetweenKit // // Created by Stephen Fortune on 20/12/2014. // Copyright (c) 2014 stephen fortune. All rights reserved. // #ifndef BetweenKit_I3Config_h #define BetweenKit_I3Config_h /** @note I've been a bit lazy and put all the routing code and URL config in macros. Ordinarily, I'd m...
1,331,385
the-stack-v2-dedup
C
/* * Generated by asn1c-0.9.24 (http://lionet.info/asn1c) * From ASN.1 module "CryptographicMessageSyntax2004" * found in "../rfc5652-CryptographicMessageSyntax2004.asn1" */ #include "AuthenticatedData.h" static asn_TYPE_member_t asn_MBR_AuthenticatedData_1[] = { { ATF_NOFLAGS, 0, offsetof(struct AuthenticatedD...
1,331,386
the-stack-v2-dedup
C
/* * Copyright (c) 2008 Johns Hopkins University. * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written * agreement is hereby granted, provided that the above copyright * notice, the (updated) modificatio...
1,331,387
the-stack-v2-dedup
C
/* guesser.c * / #include <stdio.h> /* for printf() */ #include <stdlib.h> /* for EXIT_SUCCESS */ int your_fcn() { /* Provide THREE different versions of this, * that each win the "guessing game" in main(). */ return 0; } int main() { int mine = 0; int yours = 0; yours = your_fcn(); mine = yours + 1...
1,331,388
the-stack-v2-dedup
C
/* * Class EV_HORIZONTAL_SEPARATOR */ #include "eif_macros.h" #ifdef __cplusplus extern "C" { #endif static EIF_TYPE_INDEX gen_type0_1268 [] = {0xFF11,219,0xFFFF}; static EIF_TYPE_INDEX gen_type1_1268 [] = {0xFF11,236,0xFF12,1267,0xFFFF}; static EIF_TYPE_INDEX gen_type2_1268 [] = {0xFF11,1267,0xFFFF}; static EIF_...
1,331,389
the-stack-v2-dedup
C
#ifndef _PACE_TASK_H_ #define _PACE_TASK_H_ #include "queue.h" #include "task.h" #include "FreeRTOS.h" typedef enum { TASK_BEGIN = 0x00, TASK_GUI, TASK_TIME_SYS, TASK_AT_CMD, TASK_ID_MAX, TASK_NONE = 0xFF } pace_task_id; typedef struct { TaskFunction_t task_func; char * task_name; uin...
1,331,390
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,331,391
the-stack-v2-dedup
C
/** * Author: Adrian Padin (padin.adrian@gmail.com) * Date: 2020/04/13 */ /* ===== Includes ===== */ #include "Sprites.h" #include "SpriteTileIndex.h" /* ===== Static Variables ===== */ static UINT8 sprite_counter = 0; /* ===== Functions ===== */ /** Initialize the sprite counter to 0. */ void InitializeSpri...
1,331,392
the-stack-v2-dedup
C
#include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <string.h> #include <assert.h> #include <setjmp.h> #include "ccattr.h" static const char *foo(const char *fstr) CCATTR_FORMAT_ARG(1) CCATTR_MALLOC; static void fooexit(void) CCATTR_NORETURN; static void foomp(void) CCATTR_RETURNS_TWICE; static const ...
1,331,393
the-stack-v2-dedup
C
// This script is used to compare the difference of the FullSim_sf between two recommendation files: // print out the value and see the difference // The recommendation files are my version (not Philip's version). // The name of recommendation files should be the same. #include <TROOT.h> #include <TFile.h> #include <TS...
1,331,394
the-stack-v2-dedup
C
#ifndef COLLISION_FILTER_PLUGIN_H #define COLLISION_FILTER_PLUGIN_H #include "../b3PluginAPI.h" #ifdef __cplusplus extern "C" { #endif //the following 3 APIs are required B3_SHARED_API int initPlugin_collisionFilterPlugin(struct b3PluginContext* context); B3_SHARED_API void exitPlugin_collisionFilterPlugin(struct...
1,331,395
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> struct node { int data; struct node *next; }*head1=NULL,*tail1=NULL,*head2=NULL,*tail2=NULL; void displayList1() { struct node *temp; if(head1== NULL) { printf("Empty."); } else { temp = head1; while(temp != NULL...
1,331,396
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "files.h" #include "getmap.h" void get_vmmap(int pid, struct vmds* vmds, int flag){ char path[PATHBUF] = {'\0'}; char b[BUFSIZE]; char tmp[BUFSIZE]; char *str; long start, end; int flags; char protection[5]; int size; i...
1,331,397
the-stack-v2-dedup
C
#ifndef _IONIZATION_HEADER #define _IONIZATION_HEADER #include "solver.h" float_type keldysh_rate_ln(float_type lnI); float_type PPT_rate_ln(float_type lnI, float_type Ui, float_type Z, int l); float_type plasma_source_function(float_type reA, float_type imA, float_type ro); float_type absorbtion_function(f...
1,331,398
the-stack-v2-dedup
C
#pragma once #include <pebble.h> #include <pdc-transform/pdc-transform.h> #include "../modules/settings.h" #define ABD_LABEL_FONT RESOURCE_ID_FONT_LABEL_13 #define ABD_LABEL_SMALL_FONT RESOURCE_ID_FONT_LABEL_12 #define C_LABEL_FONT RESOURCE_ID_FONT_LABEL_16 #define C_LABEL_SMALL_FONT RESOURCE_ID_FONT_LABEL_13 #define...
1,331,399