source
string
code_lang
string
content
string
idx
int64
the-stack-v2-dedup
C
/* * Copyright (c) 2015 by Cadence Design Systems, Inc. ALL RIGHTS RESERVED. * These coded instructions, statements, and computer programs are the * copyrighted works and confidential proprietary information of * Cadence Design Systems Inc. They may be adapted and modified by bona fide * purchasers for inte...
1,331,200
the-stack-v2-dedup
C
/* * Building: gcc -DWITH_PTHREADS -nostartfiles --shared -fPIC -g -ldl -o log-malloc.so log-malloc.c * or gcc -nostartfiles --shared -fPIC -g -ldl -o log-malloc.so log-malloc.c * Usage: LD_PRELOAD=./log-malloc.so command args ... * Homepage: http://www.brokestream.com/wordpress/category/projects/log-malloc/...
1,331,201
the-stack-v2-dedup
C
#ifndef _INTERRUPT_H #define _INTERRUPT_H extern void clockHandler(int, void *); extern void illegalIntHandler(int, void *); #endif
1,331,202
the-stack-v2-dedup
C
#include <stdio.h> #define SIZE 10 int queue[SIZE]; int head; // queue head pointer int tail; // queue tail pointer void print_queue(); void enqueue(int n); int dequeue(); int main(int argc, const char * argv[]) { head = 0; tail = 0; int mode=3; int x; while(mode > 0){ printf("end:0, enqueue:1, deq...
1,331,203
the-stack-v2-dedup
C
#ifndef PARSER_H_ # define PARSER_H_ # include <stdint.h> # include "new.h" # include "vector.h" # include "map.h" # include "lexer.h" typedef struct node_init { char *kind; size_t value_size; void *value; } node_init; typedef struct node { t_object __obj__; char *kind; void *value; size_t value...
1,331,204
the-stack-v2-dedup
C
/* ** parallel_func.c for 42sh$ in /home/jamme-_c/rendu/42sh_func/my_echo_dollar ** ** Made by jamme-_c ** Login <jamme-_c@epitech.net> ** ** Started on Wed Apr 23 22:22:36 2014 jamme-_c ** Last update Sat May 24 17:28:49 2014 lancel_e */ #include "dollar.h" int how_many_dollars(char *str) { int i; int dol; ...
1,331,205
the-stack-v2-dedup
C
#include <stdlib.h> #include <stdio.h> /** * liss - check * * @number: value * * Return: check; */ int liss(char *number) { int i = 0; while (number[i] != '\0') { if (number[i] >= '0' && number[i] <= '9') { i++; } else { return (0); /*cero es no */ } } return (1); /* uno es si */ } /** ...
1,331,206
the-stack-v2-dedup
C
#include "hkj_library.h" extern void CySysTickStart(void); extern void CySysTickEnableInterrupt(void); extern void CySysTickDisableInterrupt(void); #define CY_INT_SYSTICK_IRQN (15u) static volatile uint32 ms_tick = 0; static int started = FALSE; CY_ISR(hkj_ms_isr) { ms_tick++; } void hkj_timer_ms_init(hkj_time...
1,331,207
the-stack-v2-dedup
C
#include <stdio.h> #define MAX 100 int main() { char str[MAX]; printf("Enter a string: "); scanf("%s", str); for (int i=0; str[i] != '\0'; i++) if (str[i] >= 'A' && str[i] <= 'Z') str[i] += 32; printf("In Lowercase : %s\n", str); }
1,331,208
the-stack-v2-dedup
C
#include <stdio.h> int main() { unsigned long long a = 50; int i; unsigned long long number = 1; for(i = 1; i <= a; i++) { number = number * i; } printf("%llu \n", number); return 0; }
1,331,209
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,210
the-stack-v2-dedup
C
#ifndef MYDEFINES_H_INCLUDED #define MYDEFINES_H_INCLUDED #define M 2 #endif // MYDEFINES_H_INCLUDED
1,331,211
the-stack-v2-dedup
C
#include<stdio.h> #include<conio.h> void main() { int eng,mat,phy,che,com,tot; float per; printf("english\n"); scanf("%d",&eng); printf("physics\n"); scanf("%d",&phy); printf("chemistry\n"); scanf("%d",&che); printf("maths\n"); scanf("%d",&mat); printf("computer\n"); scanf("%d",&com); tot...
1,331,212
the-stack-v2-dedup
C
#include <stdlib.h> struct Foo { char arr[1024]; }; int main(void) { struct Foo foo; foo.arr = malloc(1024); free(foo.arr); return 0; }
1,331,213
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <ctype.h> int main() { char letra; printf("Informe a letra: "); scanf("%s", &letra); letra = toupper(letra); if(letra == 'A' || letra == 'E' || letra == 'I' || letra == 'O' || letra == 'U'){ printf("A letra eh vogal"); }else{ pr...
1,331,214
the-stack-v2-dedup
C
ce readme contient 1 un arbre des includes 2 rien d autre pour le moment 3 // ATTENTION dans fonction_affichage il y a une montagne de if // il est conseiller de ne pas les lires de 38 a 240 objectif a ateindre 1 lire puis stoker la partie voulu 2 jouer au sokoban graphic interface au lancement lo...
1,331,215
the-stack-v2-dedup
C
// // Common.h // DayDayCook // // Created by mac on 16/10/24. // Copyright © 2016年 mac. All rights reserved. // #ifndef Common_h #define Common_h #define kScreenheight [UIScreen mainScreen].bounds.size.height #define kScreenwidth [UIScreen mainScreen].bounds.size.width #define kTabBarHeight 49 #define kNaviHeight...
1,331,216
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include "global.h" #include "tbytecode.h" #include "tmem.h" #define MEM_LIST_SIZE 1024*1024 void* memalloclist[MEM_LIST_SIZE]; u8* mem_copy(u8* srcmem,u32 size) { u8* newmem = (u8*)mem_alloc(size); if(newmem == NULL) return NULL; memcpy(newmem,srcmem,size);...
1,331,217
the-stack-v2-dedup
C
#define DRIVE_FACTOR 1 void driveX(int speed) { motor(FrontLeft) = speed; motor(FrontRight) = speed; motor(BackLeft) = speed; motor(BackRight) = speed; } void FourBarLinkDown() { servo(FourBarLink) = 300; wait1Msec(10); } void FourBarLinkUp() { servo(FourBarLink) = 0; wait1Msec(10); } void slideMid() { ...
1,331,218
the-stack-v2-dedup
C
/********************************************************* ANN.h -------------------------------------------------------- generated at Fri Sep 12 14:39:07 2014 by snns2c ( Bernward Kett 1995 ) *********************************************************/ extern int ANN(float *in, float *out, int init); static s...
1,331,219
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> char* convert(char* s, int numRows) { char z_string[] = ""; int i = 0; for( i = 0; s[i] != '\0'; i++ ) { } return z_string; } int main() { char s1[] = "LEETCODEISHIRING"; int numRows = 3; convert( s1, numRows ); return 0; }
1,331,220
the-stack-v2-dedup
C
#include "colas.h" int vaciaC (TCola C) { return C.pri == -1; } void sacaC(TCola *C, TElementoC* dato) { if (!vaciaC(*C)) { *dato = (*C).datos[(*C).pri]; if ((*C).pri == (*C).ult) { iniciaC(C); } else { (*C).pri += 1; } } } TElementoC consultaC (TCola C) { if (C.pri != -1) { ...
1,331,221
the-stack-v2-dedup
C
#ifndef BIT_BUCKET #define BIT_BUCKET /* this is the bitfield which takes 1 byte(8-bits) of space in memory */ typedef struct ByteBits{ unsigned char f7:1; unsigned char f6:1; unsigned char f5:1; unsigned char f4:1; unsigned char f3:1; unsigned char f2:1; unsigned char f1:1; unsigned char f0:...
1,331,222
the-stack-v2-dedup
C
#include <linux/init.h> #include <linux/module.h> #include <linux/device.h> #include <linux/kernel.h> #include <linux/fs.h> #include <asm/uaccess.h> #include <linux/mutex.h> /* lock the process via multuple users/terminals*/ #define DEVICE_NAME "izchar" #define CLASS_NAME "iz" MODULE_LICENSE("GPL"); MODULE_AUTHOR("i...
1,331,223
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <ncurses.h> struct lines { char *line1; char *line2; char *line3; }; int main(void) { struct lines rows; rows.line1 = (char *) malloc(100 * sizeof(char)); rows.line2 = (char *) malloc(100 * sizeof(char)); rows.line3 = (char *) malloc(100 * sizeof(char)); ...
1,331,224
the-stack-v2-dedup
C
#ifndef KPANEL_PANEL_H__ #define KPANEL_PANEL_H__ #include "nrf_drv_gpiote.h" #include "nrfx_gpiote.h" #include "nrf_log.h" #include "panel.h" #ifdef __cplusplus extern "C" { #endif /**@brief KPanel settings structure */ typedef struct { uint8_t mode; bool mode_enabled; uint8_t brightness; uint8_t t...
1,331,225
the-stack-v2-dedup
C
/********************************************************************************** ** ** Copyright (C) 1994 Narvik University College ** Contact: GMlib Online Portal at http://episteme.hin.no ** ** This file is part of the Geometric Modeling Library, GMlib. ** ** GMlib is free software: you can redistribute it ...
1,331,226
the-stack-v2-dedup
C
#include <stdio.h> //printf (), scanf (). #include <stdlib.h> //system (). int main () { int i, j; double mat1[4][4], mat2[4][4], result[4][4]; printf ("\n\n\nInformando a primeira matriz:"); for (i = 0; i < 4; i++) for (j = 0; j < 4; j++) { printf("\nInforme um numero: "); ...
1,331,227
the-stack-v2-dedup
C
/************************************************************************* > File Name: hzol131.c > Author: bianyilin > Mail: 732406982@qq.com > Created Time: 2019年06月29日 星期六 11时49分03秒 ************************************************************************/ #include<stdio.h> int main(){ int a,n,max,min,i,su...
1,331,228
the-stack-v2-dedup
C
#include<stdio.h> #include <stdlib.h> #include <string.h> #include "convert_to_csv.h" #include "read_csv.h" int get_char_number(const char* csv_filename) { FILE *f=fopen(csv_filename,"rt"); int i = 1; while ((fgetc(f)) != EOF) { i++; } fclose(f); return i; } void filecp(const char * source,const char * dest) ...
1,331,229
the-stack-v2-dedup
C
//Mandel drawing routines #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <assert.h> #include <math.h> #include <SDL2/SDL.h> #include <mpfr.h> #include "complex.h" #include "w_h_display.h" #include "julia.h" long int juliaConverge(complex *z, long int num_it, complex comp){ long int i = 0; ...
1,331,230
the-stack-v2-dedup
C
#include "postgres.h" #include "fmgr.h" #include "catalog/pg_type.h" #include "utils/array.h" #include "utils/lsyscache.h" #include <stdio.h> #include <stdlib.h> #include <math.h> bool alpine_miner_deconstruct_array(ArrayType *arg,Datum **data, bool **nulls,int *count); PG_FUNCTION_INFO_V1(alpine_miner_nn_ca_o); Da...
1,331,231
the-stack-v2-dedup
C
/* Find the sum of all the multiples of 3 or 5 below 1000. */ #include "numbertheory.h" int main(void) { int i; int count = 0; for (i = 0; i < 1000; i++) if (i % 3 == 0 || i % 5 == 0) count += i; printf("%d\n", count); return 0; }
1,331,232
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,233
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,234
the-stack-v2-dedup
C
#include "stackdyn.h" void push( stack st, int num ) { st->data[st->top] = num; st->top++; } int pop( stack st ) { int num; num = st->data[st->top-1]; st->top--; return num; } void printstack( stack st ) { int k; for (k = 0; k < st->top; k++) printf("%d "...
1,331,235
the-stack-v2-dedup
C
/* * Interface functions. * Copyright (C) 1997, 98 Kunihiro Ishiguro * * This file is part of GNU Zebra. * * 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 your ...
1,331,236
the-stack-v2-dedup
C
../../../BeeFramework/framework/mvc/view/template/parsers/Bee_UITemplateParserXMLImpl.h
1,331,237
the-stack-v2-dedup
C
#pragma once extern int valuesProcessed; enum eExprErr BatchProcessing(char *tofactorText, BigInteger *tofactor, char **ptrOutput);
1,331,238
the-stack-v2-dedup
C
/* * Copyright (c) 2011 Apple Inc. All rights reserved. * Copyright (C) 2012-2015 Erik de Castro Lopo <erikd@mega-nerd.com> * * @APPLE_APACHE_LICENSE_HEADER_START@ * * Licensed under the Apache License, Version 2.0 (the "License") ; * you may not use this file except in compliance with the License. * You may ob...
1,331,239
the-stack-v2-dedup
C
#include "localidad.h" /*void loc_MostrarUno(eLocalidad aux) { } */ void loc_MostrarListado(eLocalidad listado [],int largo) { int i; for(i=0;i<largo;i++) { if (eLocalidad[i].id!=0) { printf("\n%s",listado[i].nombreLocalidad); } } } void loc_Alta(eLocalidad listado...
1,331,240
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,241
the-stack-v2-dedup
C
/* The MIT License (MIT) Copyright (c) 2015 Thomas Bertauld <thomas.bertauld@gmail.com> 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 r...
1,331,242
the-stack-v2-dedup
C
// Copyright (c) Microsoft Corporation. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may // not use these files 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 applicab...
1,331,243
the-stack-v2-dedup
C
#ifndef __FILE__ #error __FILE__ does not work! #endif #ifndef __LINE__ #error __LINE__ does work! #endif #define info(unit,format) if(unit<=debug_level_) write(debug_unit(unit), format) #define error(X) call debug_error(X,__FILE__,__LINE__) #define assert(X) if(.not.(X)) error('Faild assertation ('//'X'//')')
1,331,244
the-stack-v2-dedup
C
#include "slcd.h" #include "ir.h" #include "rrs.h" #include "ntc.h" #include "clock.h" #include "esp8266.h" #include <string.h> #include <stdio.h> #include "menu.h" typedef struct { unsigned char pnext; unsigned int rtime; }Menu_st; Menu_st Menu; ////////////////////////////////////////////////////////////////////...
1,331,245
the-stack-v2-dedup
C
main() { float a; float b; float c; float d; a = 10; b = 5; c = 2; d = a+b-c/d*a; }
1,331,246
the-stack-v2-dedup
C
/* WARNING: COPYRIGHT (C) 2017 XSENS TECHNOLOGIES OR SUBSIDIARIES WORLDWIDE. ALL RIGHTS RESERVED. THIS FILE AND THE SOURCE CODE IT CONTAINS (AND/OR THE BINARY CODE FILES FOUND IN THE SAME FOLDER THAT CONTAINS THIS FILE) AND ALL RELATED SOFTWARE (COLLECTIVELY, "CODE") ARE SUBJECT TO A RESTRICTED LICENSE AGREEMENT ("A...
1,331,247
the-stack-v2-dedup
C
#include <stdio.h> int main() { int a[10][10], b[10][10], result[10][10], r1, c1, r2, c2, i, j, k,x=0; printf("Enter rows and column for first matrix: "); scanf("%d %d", &r1, &c1); printf("Enter rows and column for second matrix: "); scanf("%d %d",&r2, &c2); ...
1,331,248
the-stack-v2-dedup
C
#ifndef __Z_STATICCTX_H_ #define __Z_STATICCTX_H_ typedef struct { /* 0x0000 */ s32 page_no; //1 is first page /* 0x0004 */ s32 r_group; //"register" group (R, RS, RO, RP etc.) /* 0x0008 */ s32 unk_08; /* 0x000C */ s32 unk_0C; /* 0x0010 */ s32 unk_10; // /* 0x0014 */ s16 mem[0xAE0]; char __pad...
1,331,249
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include "Fila.h" struct nodo { void *elemento; Nodo *proximo; }; //Cabecalhos estaticos das funcoes da fila // static pra evitar que sejam chamados // sem ser por "orientacao objeto" static void enfila (Fila *p, void *elemento); static int desenfila (Fila *p); static v...
1,331,250
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,251
the-stack-v2-dedup
C
#include<stdio.h> #include<conio.h> void main() { int a[5],i; int *p; clrscr(); p=&a[0]; *p=0; for (i=0;i<5;i++) { a[i]=*p; } printf("value of elements of array are\n"); for(i=0;i<5;i++) { printf("%d \n",a[i]) ; } getch(); }
1,331,252
the-stack-v2-dedup
C
/************************************** * Dungeon game * * * version 0.1.4 alpha ***************************************/ #ifndef DEFINITIONS_H_INCLUDED #define DEFINITIONS_H_INCLUDED #define MAP_SIZE 20 #define ENEMY_NR 3 #define FLOOR 0 #define WALL 1 #define PLAYER 2 ...
1,331,253
the-stack-v2-dedup
C
#include <stdio.h> #define YES 1 #define NO 0 /* ** 删除注释功能 */ static void cleancom(FILE *stream) { int c, nextc, nextcc, nextccc, linecount = 0; // 删除注释功能 while ((c=fgetc(stream)) != EOF) { if (c == '/') // 删除注释功能 if ((nextc = fgetc(stream)) == '/') { while(fgetc(stream) != '\n') ; if (lineco...
1,331,254
the-stack-v2-dedup
C
/* DataToC output of file <smear_png> */ int datatoc_smear_png_size = 8459; char datatoc_smear_png[] = { 137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 0, 96, 0, 0, 0, 96, 8, 6, 0, 0, 0,226,152,119, 56, 0, 0, 0, 4,103, 65, 77, 65, 0, 0,177,143, 11,252, 97, 5, 0, 0, 0, 32, 9...
1,331,255
the-stack-v2-dedup
C
cocci_test_suite() { struct nvkm_device *cocci_id/* drivers/gpu/drm/nouveau/nvkm/engine/mpeg/g84.c 40 */; struct nvkm_engine **cocci_id/* drivers/gpu/drm/nouveau/nvkm/engine/mpeg/g84.c 40 */; int cocci_id/* drivers/gpu/drm/nouveau/nvkm/engine/mpeg/g84.c 39 */; const struct nvkm_engine_func cocci_id/* drivers/gpu/dr...
1,331,256
the-stack-v2-dedup
C
#include "Dev_System.h" #include "Dev_ADC.h" #include "Dev_IWDG.h" #include "Dev_Key.h" #include "Dev_LED.h" #include "Dev_Relay.h" #include "Dev_RTC.h" #include "Dev_Timer.h" #include "Dev_UART.h" #include "Dev_Valve.h" #include "delay.h" #include "Dev_XGZP6867.h" #include "Dev_FlowSensor.h" #include "mb.h" #include ...
1,331,257
the-stack-v2-dedup
C
#ifndef NO_IDENT static char *Id = "$Id: alarm.c,v 1.6 1995/06/04 17:08:44 tom Exp $"; #endif /* * Title: alarm.c * Author: Thomas E. Dickey * Created: 10 Sep 1984 * Last update: 10 Sep 1984 * * Function: Use VAX/VMS run-time routine to make an audible tone (BELL) * on the user's terminal. This is used rather...
1,331,258
the-stack-v2-dedup
C
#ifndef _ADD_H #define _ADD_H int add(int x1, int x2); #endif
1,331,259
the-stack-v2-dedup
C
task main() { if (SensorValue(startbutton) = 1)//If the start button is pressed { startvariable = 1; //Change the variable start to 1 while(startvariable = 1) //While the variable start is equal to 1 { clearTimer(Castle1Timer); //Clear the 1st castle timer clearTimer(Castle2Timer); //Clear the...
1,331,260
the-stack-v2-dedup
C
/* [%START%;%FileHeader%] */ /*********************************************************************** ファイル名: DGT_PvErrCode.h 表題 : DIALOGGENモジュール内部エラーコード宣言ヘッダファイル 内容 : DIALOGGENモジュールで使用する内部エラーコードを宣言する 適用機種 : PASMOモジュール (ESSICMPB) ************************************************...
1,331,261
the-stack-v2-dedup
C
/* parallel_sum.c sums the numbers from 1 to N. * TJ DeVries, for ENGR 325 at Calvin College. */ #include <stdio.h> // printf(), etc. #include <stdlib.h> // exit() #include <math.h> // sqrt() #include <mpi/mpi.h> /* retrieve desired maximum from commandline arguments * parameters: argc: the argument...
1,331,262
the-stack-v2-dedup
C
#include <stdio.h> // A simple atoi() function int myAtoi(char *str) { int res = 0; // Initialize result int i = 0; // Iterate through all characters of input string and // update result for(i = 0; str[i] != '\0'; ++i) res = res*10 + str[i] - '0'; // return result. return res; } // Driver program to test...
1,331,263
the-stack-v2-dedup
C
// This file generated with the code_generator // Please do not modify it manually #ifndef COM_NGOS_SHARED_COMMON_PCI_DATABASE_GENERATED_VENDOR8086_PCISUBDEVICE80860046_H #define COM_NGOS_SHARED_COMMON_PCI_DATABASE_GENERATED_VENDOR8086_PCISUBDEVICE80860046_H #include <com/ngos/shared/common/ngos/types.h> #include <c...
1,331,264
the-stack-v2-dedup
C
// Copyright 2016 Altworx. All rights reserved. #pragma once #include <erl_nif.h> #include "ecsv_common.h" #define NIF(name) ERL_NIF_TERM name( \ UNUSED(ErlNifEnv* env), \ UNUSED(int argc), \ UNUSED(const ERL_NIF_TERM argv[])) #define PAR(test) unless(test) return enif_make_badarg(env) stati...
1,331,265
the-stack-v2-dedup
C
/* Zihao Wang * cmsc152 Lab3 * 1/25/2018 */ #include<stdio.h> #include<math.h> #include <stdlib.h> #include <string.h> #include "waves.h" double dist(double x0, double y0, double x1, double y1); double dist(double x0, double y0, double x1, double y1) { return(sqrt(pow(x0-x1,2)+pow(y0-y1,2))); } int point_to_col_ge...
1,331,266
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,267
the-stack-v2-dedup
C
#ifndef __SHRD_H__ #define __SHRD_H__ make_helper(shrdi_v); make_helper(shrd_v); #endif
1,331,268
the-stack-v2-dedup
C
// Conveniance macro which gives the length of an array #define LEN(x) (sizeof(x) / sizeof((x)[0]))
1,331,269
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,270
the-stack-v2-dedup
C
// You were invited to do a little job for your Mathematic teacher. The job is to read a Mathematic expression in format of two rational numbers (numerator / denominator) and present the result of the operation. Each operand or operator is separated by a blank space. The input sequence (each line) must respect the foll...
1,331,271
the-stack-v2-dedup
C
/************************************************************************ MATLAB - PCx interface Michael Wagner Old Dominion University August 24, 2000 ***********************************************************************/ #include <stdlib.h> #include "mex.h" #include "main.h" #include "memory.h" #include "pre...
1,331,272
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* printing_stage.c :+: :+: :+: ...
1,331,273
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,274
the-stack-v2-dedup
C
/* Copyright (c) 2015 The University of Edinburgh. */ /* * This software was developed as part of the * EC FP7 funded project Adept (Project ID: 610490) * www.adept-project.eu */ /* Licensed under the Apache License, Version 2.0 (the...
1,331,275
the-stack-v2-dedup
C
#include<stdio.h> int checkYear(int y){ int re=0; if(y%400==0||(y%4==0&&y%100!=0)){ re=1; } return re; } int main(void){ int a, b, i, re, cnt=0; printf("西暦を入力して下さい:"); scanf("%d",&a); printf("西暦を入力して下さい:"); scanf("%d",&b); for(i=a;i<=b;i++){ re=0; re = checkYear(...
1,331,276
the-stack-v2-dedup
C
//®FD1¯®PL1¯®TP0¯®BT0¯®RM200¯ // (c) Copyright 1991 MICROGRAFX, Inc., All Rights Reserved. // This material is confidential and a trade secret. // Permission to use this work for any purpose must be obtained // in writing from: MICROGRAFX, 1303 E Arapaho, Richardson, TX 75081 #ifndef _IMGCMD_H_ #define _IMGCMD_H...
1,331,277
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_isgraph.c :+: :+: :+: ...
1,331,278
the-stack-v2-dedup
C
#include <stdio.h> void develop1(){ printf("develop1\n"); } void develop2(){ printf("develop2\n"); }
1,331,279
the-stack-v2-dedup
C
#include "simulator.h" #include <stdio.h> #include <math.h> #include <string.h> #include "KeyPoints.h" #ifdef __cplusplus #define DLLAPI extern "C" __declspec(dllexport) #else #define DLLAPI __declspec(dllexport) #endif unsigned short hasRead; unsigned short StartPoint,EndPoint; unsigned short iul; //unsigned short *...
1,331,280
the-stack-v2-dedup
C
#pragma once #include <Windows.h> #include <crtdbg.h> #ifdef _DEBUG #define LEAKTEST TRUE #define new new(_NORMAL_BLOCK, __FILE__, __LINE__) #endif
1,331,281
the-stack-v2-dedup
C
#ifndef _SD_CARD_H_ #define _SD_CARD_H_ // // SD_CARD.h // // SD card related support // // #include "SDR_RA8875.h" #include "RadioConfig.h" bool Open_SD_cfgfile(void); void SD_CardInfo(void); void write_db_tables(void); void write_cfg(void); void read_db_tables(void); bool write_radiocfg_h(void); #endif // _SD_C...
1,331,282
the-stack-v2-dedup
C
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdbool.h> #include "../../../TimaLib/timalib.h" int p10_9(void); void exchange(int * const pint1, int * const pint2);
1,331,283
the-stack-v2-dedup
C
/* * $RCSfile: compopt.c,v $ * $Revision: 2.15 $ * $Date: 1995/09/20 06:43:57 $ * $Author: liblit $ */ #include <spoor.h> #include <compopt.h> #include <dynstr.h> #include <spoor/toggle.h> #include <spoor/text.h> #include <spoor/wrapview.h> #include <composef.h> #include <spoor/buttonv.h> #include <spoor/cmdli...
1,331,284
the-stack-v2-dedup
C
#include "./include/hwmap.h" #include "./include/hwreg.h" #include "./include/types.h" extern void serial_puts(const char *s); extern tU32 ddrinit_asic(void); extern int nc_printf(const char *format, ...); extern int bootspi_init(void); extern int bootspi_update(tU32 dest, tU32 source, tU32 size); #define UART3 0x4043...
1,331,285
the-stack-v2-dedup
C
/*! * wrapper to radau fortran routine. */ #include "radau.h" extern int mpt_radau_step(MPT_SOLVER_STRUCT(radau) *rd, double tend) { double *atol, *rtol; int neqs, tvec, imas, iout, ijac, idid, lrw, liw, *iwk; if (rd->count.st.nfev < 0 || !rd->fcn || !rd->y) { return MPT_ERROR(BadArgument); } neqs = rd->iv...
1,331,286
the-stack-v2-dedup
C
/* Harriet Odiete * Linked List Struture for student */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> typedef struct studentInfo{ int id; char * name; struct studentInfo * prev; struct studentInfo * next; }Student; Student * createList(); Student * crea...
1,331,287
the-stack-v2-dedup
C
#include <stdio.h> #include "singly_linked_list_node.h" void sll_print(struct NODE *first) { while (first) { printf("%d ", first->value); first = first->link; } putchar('\n'); }
1,331,288
the-stack-v2-dedup
C
/* Copyright (C) 2005-2013 Global Graphics Software Ltd. All rights reserved. * * This example is provided on an "as is" basis and without * warranty of any kind. Global Graphics Software Ltd. does not * warrant or make any representations regarding the use or results * of use of this example. * * $HopeName: SWe...
1,331,289
the-stack-v2-dedup
C
#ifndef __LANDZO_APP_H #define __LANDZO_APP_H #include "include.h" typedef struct{ uint8 direct[2] ; uint16 chvalue[2] ; }CHndata; void UVA_CH_FTM_init(void) ; //遥控器通道初始化 void UVA_FTM(uint16* pwmduty) ; //PWM通道赋值 void UVA_FTM_init(void) ; //PWM 初始化 uint8 Uart_DMA(uint8 damch ,void *souradd...
1,331,290
the-stack-v2-dedup
C
#include "judge_task.h" ///////////////////////////////////////////////////////////////////// //Part: Student_interface uint8_t USART_STU_BUF[200]; //学生接口接收缓冲,最大200个字节. uint16_t USART_STU_STA=0; //学生接口接收状态标记 uint8_t USART_FRAME[46]; uint8_t USART_LEN = 0; uint8_t recLength = 0; static U8 TxBuf_uart6[256];...
1,331,291
the-stack-v2-dedup
C
//Prateek Gaur 2008039 #define F_CPU 16000000UL #define Dev24C08 0xA0 #include<avr/io.h> #include <avr/interrupt.h> #include <stdlib.h> #include <stdio.h> #include "lcd.h" #include "lcd.c" #include "delay_x.h" #include "i2cmaster.h" #include "twimaster.c" int main(){ unsigned int adc_value,k; ...
1,331,292
the-stack-v2-dedup
C
/* * This is a RANDOMLY GENERATED PROGRAM. * * Generator: csmith 2.3.0 * Git version: 30dccd7 * Options: -o /home/x/obfuscator/data/programs/5291.c * Seed: 346281010 */ #include "csmith.h" static long __undefined; /* --- Struct/Union Declarations --- */ union U0 { const int8_t * f0; uint16_t f1...
1,331,293
the-stack-v2-dedup
C
// Finds the real group ID (GID) of the calling process #define _POSIX_SOURCE #include <sys/types.h> #include <stdio.h> #include <unistd.h> main() { printf("my group id is %d\n", (int) getgid()); }
1,331,294
the-stack-v2-dedup
C
#ifndef _RSC_TABLE_PRU_H_ #define _RSC_TABLE_PRU_H_ #include <stddef.h> //needed for offset_of #include <rsc_types.h> #include "pru_virtio_ids.h" #define PRU_RPMSG_VQ0_SIZE 16 #define PRU_RPMSG_VQ1_SIZE 16 #define VIRTIO_RPMSG_F_NS 0 #define RPMSG_PRU_C0_FEATURES (1 << VIRTIO_RPMSG_F_NS) #define HOST_UNUS...
1,331,295
the-stack-v2-dedup
C
#include <stdio.h> #include <string.h> main() { int n; int i, j; int a[101]; int sum=0; scanf("%d", &n); for(i=0; i<n; i++) { scanf("%d", &a[i]); if(a[i] == 2) sum++; for(j=2; j<a[i]; j++) { if(a[i] % j == 0) { break; } else if(j == a[i]-1 && a[i] % j != 0) { sum++; break...
1,331,296
the-stack-v2-dedup
C
/** assmt2.c * * Created by XXXX * (XXX@student.unimelb.edu.au) * 02/10/2017 * * Input a list of movie gross earnings data, and output * statistics calculated on it. * * To run the program type : * ./assmt2 < input_file * * C programming is fun */ #include <stdio.h> #include <stdlib.h> #include <string.h>...
1,331,297
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> int main() { int n1 , n2 ; char op ; printf("Enter the operator"); scanf("%c", &op); printf("Enter number 1:\n "); scanf("%d", &n1); printf("Enter number 2:\n "); scanf("%d", &n2); switch (op) { case '+': printf("%d + %d = %d", n1, n2, n1 + n2); ...
1,331,298
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,299