source
string
code_lang
string
content
string
idx
int64
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,328,000
the-stack-v2-dedup
C
/* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * 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 re...
1,328,001
the-stack-v2-dedup
C
/* ** sources.h for base in /home/antonin.rapini/my_programs/include ** ** Made by Antonin Rapini ** Login <antonin.rapini@epitech.net> ** ** Started on Thu Mar 2 17:18:06 2017 Antonin Rapini ** Last update Fri Mar 31 21:46:23 2017 Antonin Rapini */ #ifndef SOURCES_H_ # define SOURCES_H_ #include "my_asm.h" t_...
1,328,002
the-stack-v2-dedup
C
typedef struct{ }MyCalendarThree; MyCalendarThree*gptr; int max(int a,int b){return a>b?a:b;} int mx; typedef struct node{ int l, r, m, times; struct node*left; struct node*right; }node; node*root; node*newNode(int a, int b, int t){ node*rez=malloc(sizeof(node)); rez->l = a; rez->r = ...
1,328,003
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_itoa_base3.c :+: :+: :+: ...
1,328,004
the-stack-v2-dedup
C
#include "../inc/Cat.h" #include "stdlib.h" #include <GL/glx.h> #include <GL/gl.h> #include <GL/glut.h> #include "math.h" Cat CreateCat() { Cat cat = (Cat) malloc(sizeof(struct cat)); cat->position = ZeroPt3D(); cat->rotation = ZeroPt3D(); cat->translation = ZeroPt3D(); cat->stop = 1; cat->scal...
1,328,005
the-stack-v2-dedup
C
#include "holberton.h" /** * _puts - prints a string, followed by a new ling to stdout * @s : pointer to the front of a string * Return: void **/ void _puts(char *s) { while (*s != 0) { _putchar(*s); s++; } _putchar('\n'); }
1,328,006
the-stack-v2-dedup
C
void change(void *tab, int elemsize, int index1, int index2){ char *p_tab = tab; char *p_1 = p_tab + elemsize * index1; char *p_2 = p_tab + elemsize * index2; int i; char tmp; for (i=0;i<elemsize;i++){ tmp = *(p_1 + i); *(p_1 + i) = *(p_2 + i); *(p_2 + i) = tmp; } } void quicksort(void *base, ...
1,328,007
the-stack-v2-dedup
C
#ifndef __CREATE_MAIN_WINDOW_H__ #define __CREATE_MAIN_WINDOW_H__ GtkWidget *create_main_window(); #endif
1,328,008
the-stack-v2-dedup
C
#ifndef PERF_H #define PERF_H #include <sys/time.h> #include <stdint.h> typedef double perf_t; void perf(perf_t * p); void perf_diff(const perf_t * begin, perf_t * end); void perf_printh(const perf_t * p); void perf_printmicro(const perf_t * p); double perf_mflops(const perf_t * p, const uint64_t nb_op); /* #define...
1,328,009
the-stack-v2-dedup
C
../../../../../Pod/Classes/Client/CoinbaseObject.h
1,328,010
the-stack-v2-dedup
C
// // Direction.h // AMI // // Created by Logan Leger on 3/11/13. // Copyright (c) 2013 Logan Leger. All rights reserved. // #ifndef AMI_Direction_h #define AMI_Direction_h typedef enum { DirectionForward = 0, DirectionReverse, DirectionRight, DirectionLeft, DirectionStop } Direction; #endif
1,328,011
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstiter.c :+: :+: :+: ...
1,328,012
the-stack-v2-dedup
C
/* Includes */ #include "hal_mled_ctrl.h" #include "hw_defines.h" #if defined(__NETX90) #define HAL_MLED_CTRL_OUT_CNT 8 #endif // defined(__NETX90) /* Variables */ HW_PTR_MLED_CTRL(s_ptMledCtrl) /*****************************************************************************/ /* Functions ...
1,328,013
the-stack-v2-dedup
C
#include "gameStrategyListDebug.h" #include "gameStrategyList.h" #include "gameStrategy.h" #include "../../common/io/outputStream.h" #include "../../common/io/printWriter.h" #include "../../common/io/printTableWriter.h" // DEBUG AS TABLE #define STRATEGY_LIST_ID_COLUMN_LENGTH 12 #define STR...
1,328,014
the-stack-v2-dedup
C
#include <atf-c.h> #include <stdio.h> #include <string.h> #include <utlist.h> #include "rk65c02.h" #include "bus.h" #include "utils.h" ATF_TC_WITHOUT_HEAD(bus_init); ATF_TC_BODY(bus_init, tc) { bus_t b; b = bus_init(); ATF_CHECK(b.dm_head == NULL); bus_finish(&b); } ATF_TC_WITHOUT_HEAD(bus_init_default); A...
1,328,015
the-stack-v2-dedup
C
#ifndef M_NSD_H__ #define M_NSD_H__ #include "nestypes.h" #ifdef __cplusplus extern "C" { #endif Uint NSDLoad(NEZ_PLAY*, Uint8 *pData, Uint uSize); #ifdef __cplusplus } #endif #endif /* M_NSD_H__ */
1,328,016
the-stack-v2-dedup
C
#ifndef GUI_MESSAGE_H #define GUI_MESSAGE_H #include <stdint.h> typedef struct { uint8_t time[9]; uint8_t date[11]; uint8_t level_battery[4]; uint8_t level_gps_nub[4]; uint8_t level_gps; uint8_t level_433; uint8_t level_gsensor; uint8_t level_hearteate; ...
1,328,017
the-stack-v2-dedup
C
#include <stdio.h> int ave_of(int a, int b); int main(void) { int a; int b; printf("Input1: "); scanf("%d", &a); printf("Input2: "); scanf("%d", &b); printf("%d\n", ave_of(a, b)); return (0); } int ave_of(int a, int b) { return ((a + b) / 2); }
1,328,018
the-stack-v2-dedup
C
#include <SDL/SDL.h> #include <SDL/SDL_image.h> #include <GL/gl.h> #include <GL/glu.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #define SEG_NUMBER 50 #define SEG_SPACE PI/SEG_NUMBER #define PI 3.141592 static unsigned int WINDOW_WIDTH = 800; static unsigned int WINDOW_HEIGHT = 800; ...
1,328,019
the-stack-v2-dedup
C
// // File: jaco_regressor_types.h // // MATLAB Coder version : 2.8 // C/C++ source code generated on : 02-Mar-2016 16:32:30 // #ifndef __JACO_REGRESSOR_TYPES_H__ #define __JACO_REGRESSOR_TYPES_H__ // Include Files #include "rtwtypes.h" #endif // // File trailer for jaco_regressor_types.h // // [EOF] //
1,328,020
the-stack-v2-dedup
C
#pragma once #include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <strings.h> typedef int KeyType; typedef int* DataType; typedef int BOOL; typedef struct treenode{ KeyType key; DataType data; struct treenode* left; struct treenode* right; size_t dataSize; }_BTreeNode; typedef _BTr...
1,328,021
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) typedef struct edge{ll s,g;}E; int edgehikaku(const void*a,const void*b){ E*p=(E*)a,*q=(E*)b; if((*p).s<(*q).s)return -1; if((*p).s>(*q).s)return 1; if((*p).g<(*q).g)return -1; return 1; } ll n,m;...
1,328,022
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> int main() { scanf("重要的事情说三遍"); printf("重要的事情重要的事情重要的事情"); return 0; } /************************************************************** Problem: 2042 User: 201901060203 Language: C Result: Accepted Time:0 ms Memory:748 kb ********************************...
1,328,023
the-stack-v2-dedup
C
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * repmat.c * * Code generation for function 'repmat' * */ /* Include files */ #include "repmat.h...
1,328,024
the-stack-v2-dedup
C
#include <hls_stream.h> #include <ap_axi_sdata.h> #include <ap_int.h> typedef ap_axiu<24,1,1,1> interface_t; typedef hls::stream<interface_t> stream_t; void led_timer(stream_t &video_in,stream_t &video_out, ap_uint<11> row,ap_uint<11> col, ap_uint<11> custom_row,ap_uint<11> custom_col, ap_uint<4> variation,ap_...
1,328,025
the-stack-v2-dedup
C
//#include <stdio.h> //#include <stdlib.h> // //#pragma warning(disable:4305) // //int main(void) //{ // double d=2333.3456789123456789; // float f=2333.34567; // 2333.345703 对应的精度是7位小数的。 // printf("%f\n",f); // printf("%lf\n",d);//2333.345679 // printf("%.20lf\n",d); //2333.3456791234560000000 // 需要增加.符号,后面的...
1,328,026
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> int main(void) { const char s[] = "15"; long i = strtol(s, NULL, 10); printf("%ld\n", i); return 0; }
1,328,027
the-stack-v2-dedup
C
/* * BigInteger.c * Ly Phung * lynphung * CSE101 * 11/6/19 * ImpNementation file for BigInteger ADT */ #include<stdio.h> #include<stdlib.h> #include<string.h> #include<assert.h> #include"List.h" #include"BigInteger.h" //big int typedef struct BigIntegerObj { int sign; List mag; } BigIntegerObj; BigInteger newBigIn...
1,328,028
the-stack-v2-dedup
C
#pragma once /* * Copyright (C) 2018 Simon Schmidt * * This code is public domain; you can redistribute it and/or modify * it under the terms of the Creative Commons "CC0" license. See LICENSE.CC0 * or <http://creativecommons.org/publicdomain/zero/1.0/> for full details. * Alternatively, you can use this softwar...
1,328,029
the-stack-v2-dedup
C
#include<stdio.h> struct student { int age[20]; char id[20]; char d[20]; }; int main() { struct student stu[20]; stu[0].age[0] =20; stu[0].age[1] =20; stu[0].age[3] = stu[0].age[0]+stu[0].age[0]; stu[0].age[20] ="html"; printf("%d %s",stu[0].age[3], stu[0].age[20]); return 0; }
1,328,030
the-stack-v2-dedup
C
#define dvapi 6.28318530717958647692 #define pi 3.14159265358979323846 #define sqrtmu 631.348113 #define C20 -1.082635e-3 #define RZ 6378.137 void shortperiodics( double *a, double *e, double *i, double *Om, double *om, double *u, int ADD); /********************************************************...
1,328,031
the-stack-v2-dedup
C
/* This file is part of Manic Pietro. Manic Pietro is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
1,328,032
the-stack-v2-dedup
C
#include <rand.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include "include/entity.h" #include "include/hud.h" #include "include/item.h" #include "include/map.h" #include "include/rendering.h" const char a_infinitive[] = "a"; const char an_infinitive[] = "an"; const char pickup_message[] = "%s pick...
1,328,033
the-stack-v2-dedup
C
/* ************************************************************************** */ /* LE - / */ /* / */ /* ft_strncat.c .:: .:/ . .:: ...
1,328,034
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <locale.h> #define TAM 6 typedef struct{ int id; int velMax; int hp; }tipoCarta; tipoCarta vetTrunfo[TAM]; void criaBaralho(){ int i; for(i = 0; i < TAM; i++){ vetTrunfo[i].id = i+1; vetTrunfo[i].velMax = rand() % 3 * 100 + rand() % 10 * 10; vetTrunfo[i].hp...
1,328,035
the-stack-v2-dedup
C
struct foo { int g;;; char *d; } x; int main() { x.g = 1; return 0; }
1,328,036
the-stack-v2-dedup
C
/* { dg-require-effective-target aarch64_asm_f64mm_ok } */ /* { dg-additional-options "-march=armv8.2-a+f64mm" } */ /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */ #include "test_sve_acle.h" /* ** uzp1q_f16_tied1: ** uzp1 z0\.q, z0\.q, z1\.q ** ret */ TEST_UNIFORM_Z (uzp1q_f16_tied1, svfloat16_t, ...
1,328,037
the-stack-v2-dedup
C
// Engine // Copyleft 2013 the Mojon Twins // Uses neslib and MT Chunk Scroller #define SPROFFSET 31 // Remove this /* void debug_n (unsigned char y) { oam_spr (16, 16, 40 + (y / 100), 1, 180); oam_spr (24, 16, 40 + ((y % 100) / 10), 0, 184); oam_spr (32, 16, 40 + (y % 10), 0, 188); } */ // creates...
1,328,038
the-stack-v2-dedup
C
#ifndef _LOGOUTRESPONSEHANDLER #define _LOGOUTRESPONSEHANDLER #include "LogoutResponse.h" #include "FastDelegate.h" typedef fastdelegate::FastDelegate1<LogoutResponse*>LogoutResponseHandler; #endif // _LOGOUTRESPONSEHANDLER
1,328,039
the-stack-v2-dedup
C
/*******************************************************************************************************************************//** * * @file I2C.c * @brief Contiene las definiciones de las funciones del modulo * @date 3 oct. 2020 * @author Nicolás Taurozzi * *****************************************...
1,328,040
the-stack-v2-dedup
C
#define _CRT_SECURE_NO_WARNINGS 1 #ifndef _MYSTRING_H_ #define _MYSTRING_H_ #include<stdio.h> #include<stdlib.h> #include<assert.h> char* my_strstr(char* dst, char* src); char* my_strchr(char ch, char* src); int my_strcmp(char* str1, char* str2); char* my_strncpy(char* dst, char* src, size_t n); char* my_strncat(char...
1,328,041
the-stack-v2-dedup
C
#include "unp.h" int main(void) { printf("%d \n",htons(16)); printf("%d \n",ntohs(4096)); return 0; }
1,328,042
the-stack-v2-dedup
C
/*********************************************************************************************************************** * DISCLAIMER * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. * No other uses are authorized. This software is owned by Renesas El...
1,328,043
the-stack-v2-dedup
C
#include "libft.h" t_cplx make_cplx(float x, float y) { t_cplx z; z.x = x; z.y = y; return (z); }
1,328,044
the-stack-v2-dedup
C
/*!************************************************************************** module : hbd90.h ------------------------------------------------------------------------- responsible : FerdiF special area: description : Declaration of exported functions of modul vbd90.cpp version : 7.2.0.0 l...
1,328,045
the-stack-v2-dedup
C
#include "op.h" #include "corewar.h" int get_bin_num(char type, int n) { return ((type & (3 << (6 - 2 * (n - 1)))) >> (6 - 2 * (n - 1))); }
1,328,046
the-stack-v2-dedup
C
#include<stdio.h> #include<stdlib.h> struct node { int info; struct node *link; }; typedef struct node *NODE; NODE getnode() { NODE x; x=(NODE)malloc(sizeof(struct node)); if(x==NULL) { printf("memory full\n"); exit(0); } return x; } void freenode(NODE x) { free(x); } NODE insert_front(NODE first,int item) { NODE temp;...
1,328,047
the-stack-v2-dedup
C
#include "function.h" /**清除数组中指定区域, * Array:待清除的数组 * Ch:清除区域准备填充的数据 * Head:待清除的起始地址 * Length:待清除的数据长度 */ /* void ArrayReset(unsigned char *Array, unsigned char Ch, char Head, char Length) { char i = 0; for (i = Head; i <= Length; i++) { Array[i] = Ch; } } */ /** * 单片机进行软件复位 */ void REST_MCU() { IAP_CONT...
1,328,048
the-stack-v2-dedup
C
// // Assembler.c // Assembler-Simulator-XP // // Created by Drew Wilken and Nathan Taylor on 3/1/18. // Copyright © 2018 Drew Wilken and Nathan Taylor. All rights reserved. // #include <stdio.h> #include <string.h> #include <stdlib.h> #include <inttypes.h> #include <stdbool.h> #include <ctype.h> /* * Function P...
1,328,049
the-stack-v2-dedup
C
// // Created by Tomi on 2019. 03. 04.. // #ifndef POKER_POKER_H #define POKER_POKER_H #endif //POKER_POKER_H
1,328,050
the-stack-v2-dedup
C
/** * Header file with structures and functions to very big integer manipulations. * Here we'll manipulate a big number with decimal array representations. */ #ifndef BIGGY_INT_H #define BIGGY_INT_H #include <stdint.h> /** * Important defines for all functions that manipulate the bits */ #define BLOCK_SIZE 8 //...
1,328,051
the-stack-v2-dedup
C
#ifndef H_TRAJECTOIRE #define H_TRAJECTOIRE void getTrajectoirePoint(double t, double *x, double *y); double functionToMinimize(double t, void* params); double findNearest(double x, double y); double dx(double t, void* params); double getCourbure(double t); double getDerivCourbure(double t); double ge...
1,328,052
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strsub.c :+: :+: :+: ...
1,328,053
the-stack-v2-dedup
C
#include<stdio.h> void merge(int *a, int p, int q, int r) { int n1, n2, i, j = 0, k = 0, t; n1 = q - p + 1; // N1 será 0-0 + 1 = 1 n2 = r - q; // // N2 será 0-0 + 1 = 1 /* Estamos tomando dos subconjuntos L R R n1 n2 // tamaño y respectivamente para copiar elementos de un [0..0] y [1..1].*/ ...
1,328,054
the-stack-v2-dedup
C
#pragma once // Parse.Internal.FlexibleDictionaryWrapper`2<System.Collections.Generic.IDictionary`2<System.String,System.Int32>,System.Object> struct FlexibleDictionaryWrapper_2_t1723; // System.Collections.Generic.ICollection`1<System.String> struct ICollection_1_t462; // System.Collections.Generic.ICollection`1<Sys...
1,328,055
the-stack-v2-dedup
C
#include <stdio.h> int main() { int i; int n; printf("自然数を入力してください。\nn="); scanf("%d", &n); printf("入力された自然数の約数は\n"); int remainder,nn,num; num = 0; for( int i = 0; i < n; i++) { nn = i + 1; remainder = n % nn; if( nn <= 30000000) { if( remainder == 0 ) { printf...
1,328,056
the-stack-v2-dedup
C
// // PhoneNumberAreaQuery.h // PhoneNumberAreaQuery // // Created by HeJeffery on 2017/3/4. // Copyright © 2017年 HeJeffery. All rights reserved. // #ifndef PhoneNumberAreaQuery_h #define PhoneNumberAreaQuery_h #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> typedef struct PhoneAr...
1,328,057
the-stack-v2-dedup
C
#include "trapezoidal.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #define DIGITS "10" // Put the function that you want to integrate in this area. double f(double x) { return 4 / (1 + x * x); } #pragma clang diagnostic push #pragma ide diagnostic ignored "cert-err34-c" double get_double() { double v...
1,328,058
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_abs.h :+: :+: :+: ...
1,328,059
the-stack-v2-dedup
C
#include "include/swim2col.h" #include "include/swcommon.h" #include <sys/time.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include "swblas.h" void test_im2col_zeropad_batch_swblas_float(int channels, int filters, int height, int width, int kernel_h, int kernel_w, int pad_h, int pad_w, int stride_h, i...
1,328,060
the-stack-v2-dedup
C
#include <assert.h> #include <math.h> #include <stdbool.h> #include "bytecode_optimisations/bytecode_optimisations.h" #include "runtime/struct_descriptor.h" #include "execution/execution.h" #include "utility.h" void evaluation_tests(Executor* E){ printf("TEST: %s\n", __FUNCTION__); assert(compare(E, evaluate_s...
1,328,061
the-stack-v2-dedup
C
/**************************************************************************** Copyright (c) 2017 Qualcomm Technologies International, Ltd. Part of 6.2 FILE NAME audio_input_voice_prompts_chain_config.h DESCRIPTION Voice prompts audio input chain configuration. */ #ifndef AUDIO_INPUT_VOICE_PROMPTS_CHAIN_CONFI...
1,328,062
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include "mpi.h" void begin(int *argc, char ***argv, MPI_Comm *comm, int *np, int *iam) { MPI_Init(argc, argv); MPI_Comm_dup(MPI_COMM_WORLD, comm); MPI_Comm_size(*comm, np); MPI_Comm_rank(*comm, iam); } void end() { MPI_Finalize(); } int main(int argc, char **argv) { MPI_...
1,328,063
the-stack-v2-dedup
C
/* kadai8-2.c it28 */ #include <stdio.h> main() { int m; char *month[12] = { "January", "Febuary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; do{ printf("1〜12の数字を入...
1,328,064
the-stack-v2-dedup
C
//A wrapper around text drawing #ifndef TEXT_H_ #define TEXT_H_ #include "Fonts.h" #include "Types.h" //A structure for text drawing struct Text { //The top-left point the this text string. //Basically the string will start from this point. uint16_t x, y; //A null-terminated string char *content; //Spacing b...
1,328,065
the-stack-v2-dedup
C
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class com_elastos_spvcore_CoreWallet */ #ifndef _Included_com_elastos_spvcore_CoreWallet #define _Included_com_elastos_spvcore_CoreWallet #ifdef __cplusplus extern "C" { #endif /* * Class: com_elastos_spvcore_CoreWallet * Met...
1,328,066
the-stack-v2-dedup
C
#include <math.h> #include <stdio.h> #include <gmp.h> #define PREC_BITS 256 #define DIGITS 50 #define GLL_LAG_FIX_MAX 16 #if 1 # define STATIC "static " #else # define STATIC "" #endif #define PI 3.1415926535897932384626433832795028841971693993751058209749445923 #define DECLARE_1VAR(a) static int init=0;...
1,328,067
the-stack-v2-dedup
C
../../../../../Hoko/HOKResolver.h
1,328,068
the-stack-v2-dedup
C
// // ThirdMacros.h // GraceLiveCat // // Created by 郭磊 on 2017/10/23. // Copyright © 2017年 GL. All rights reserved. // //第三方配置 #ifndef ThirdMacros_h #define ThirdMacros_h //微信 #define kAppKey_Wechat @"" #define kSecret_Wechat @"" //百度语音 #define APP_ID @"15506360" #define ...
1,328,069
the-stack-v2-dedup
C
/****************************************************************************/ /* Conexant Systems */ /****************************************************************************/ /* */ ...
1,328,070
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,328,071
the-stack-v2-dedup
C
#include <stdio.h> int main() { int a[2][3] = {{1,2,3}, {4,5,6}}; printf("%d\n", a); //this will give us the address of first element of the 2d array which is a[0][0]; printf("%d\n",*(*(a+1)+0));//this will point to a[1][0]; printf("%d\n",*(*(a)));//this will point to a[0][0]; printf("%d\n",*(*(a+1...
1,328,072
the-stack-v2-dedup
C
/** * This code is mainly show * the use of execlp */ #include <stdio.h> #include <unistd.h> int main(int argc, char** argv) { printf("Using *execlp* exec ls -l ...\n"); /** * execlp using filename, argument list, and * origina ENV to execute the program. */ execlp("ls", "ls", "-l", NUL...
1,328,073
the-stack-v2-dedup
C
/**HEADER******************************************************************** * * Copyright (c) 2008 Freescale Semiconductor; * All Rights Reserved * * Copyright (c) 2004-2008 Embedded Access Inc.; * All Rights Reserved * * Copyright (c) 1989-2008 ARC International; * All Rights Reserved * ****************************...
1,328,074
the-stack-v2-dedup
C
../../../JYUtils/JYUtils/Classes/JYCategory/UIView+JYExtension.h
1,328,075
the-stack-v2-dedup
C
#ifndef HOSTDL_CONFIG_H #define HOSTDL_CONFIG_H /*================================================================== * * FILE: hostdl_config.h * * SERVICES: Target Specific definition * * DESCRIPTION: * This header file contains hardware specific definitions which * must be ported to each MSM ...
1,328,076
the-stack-v2-dedup
C
#include <jni.h> #include "ffmpeg.h" #include <android/log.h> #ifndef LOG_TAG #define LOG_TAG "FFMPEG_JNI" #endif JNIEXPORT jint JNICALL Java_com_chasonc_ndkffmpeg_FFmpeg_run(JNIEnv *env, jobject obj, jobjectArray commands) { int argc = (*env)->GetArrayLength(env, commands); char *argv[argc]; char info[...
1,328,077
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,328,078
the-stack-v2-dedup
C
/* ** EPITECH PROJECT, 2019 ** MUL_my_runner_2019 ** File description: ** init_fireball */ #include "csfml.h" #include "my_runner.h" #include "game_parameters.h" void new_fireball(fireball_t **fireball, sfVector2f *pos) { fireball_t *new = NULL; sfSoundBuffer *buffer = NULL; if (*fireball == NULL) { ...
1,328,079
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_putstr.c :+: :+: :+: ...
1,328,080
the-stack-v2-dedup
C
#define TRUE 1 #define FALSE !TRUE #define LIMIT 256 // max number of tokens for a command #define MAXLINE 1024 // max number of characters from user input #define RED "\x1B[31m" #define GRN "\x1B[32m" #define YEL "\x1B[33m" #define BLU "\x1B[34m" #define MAG "\x1B[35m" #define CYN "\x1B[36m" #define WHT...
1,328,081
the-stack-v2-dedup
C
#pragma once //ヘッダファイルの読み込み #include "game.h" //キーボードのヘッダファイル //マクロ定義 #define KEY_KIND_MAX 256 //習得するキーの種類 //キーボード構造隊 struct KEYBOARD { char TempKeyState[KEY_KIND_MAX]; //入力状態を管理 int AllKeyState[KEY_KIND_MAX]; //すべてのキーの入力時間を管理 int OldAllKeyState[KEY_KIND_MAX]; //以前のすべてのキーの入力時時間を管理 }; //外部のグロー...
1,328,082
the-stack-v2-dedup
C
#include <gfs_config.h> #include <gfs_log.h> #include <gfs_mem.h> #include <gfs_global.h> #include <gfs_net.h> #include <gfs_tools.h> #include <gfs_net_map.h> #include <gfs_handle.h> #include <gfs_sql.h> #include <gfs_busi.h> gfs_int32 gfs_busi_delete_file_parse(gfs_busi_t *busi) { gfs_busi_req_delfile_t *req;...
1,328,083
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_memcpy.c :+: :+: :+: ...
1,328,084
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,328,085
the-stack-v2-dedup
C
/**************************************************************************** * Copyright (c) 2012, Microwise System Co., Ltd. * All rights reserved. * * 文 件 名: main.c * 描 述: analysis log * * 当前版本: V1.0 * 作 者: wang.mg * 完成日期: 2012-10-15 * 编译环境: x86+linux *****************************************************...
1,328,086
the-stack-v2-dedup
C
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SYSROOT_ZIRCON_BOOT_CRASH_REASON_H_ #define SYSROOT_ZIRCON_BOOT_CRASH_REASON_H_ #include <stdint.h> #include <zircon/compiler.h> // 0 is reserved...
1,328,087
the-stack-v2-dedup
C
/* * LTZVisor, a Lightweight TrustZone-assisted Hypervisor * * Copyright (c) TZVisor Project (www.tzvisor.org), 2017- * * Authors: * Sandro Pinto <sandro@tzvisor.org> * Jorge Pereira <jorgepereira89@gmail.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of t...
1,328,088
the-stack-v2-dedup
C
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // Copyright 2004-present Facebook. All Rights Reserved. // -*- c -*- #ifndef FAISS_GPU_CLONER_OPTIONS_C_H #define FAISS_GPU_CLON...
1,328,089
the-stack-v2-dedup
C
// // Created by sebas on 21/11/19. // #ifndef TP2_TESTING_H #define TP2_TESTING_H #include <stdbool.h> // Imprime el mensaje seguido de OK o ERROR y el número de línea. Contabiliza el // número total de errores en una variable interna. Ejemplo: // // pila_t *p = pila_crear(); // print_test("La pila fue creada...
1,328,090
the-stack-v2-dedup
C
#include <stdio.h> #include <math.h> /* **@brief 将输入图像im的channel通道上的第row行,col列像素灰度值加上val(直接修改im的值,因此im相当于是返回值) **@param im 输入图像 **@param channels 输入图像的im通道数 **@param height 输入图像im的高度(行) **@param width 输入图像im的宽度(列) **@param row 需要加上val的像素所在的行数(补0之后的行数,因此需要先减去pad才能得到真正im中的行数) **@param col 需要加上val的像素所在的列数(补0之后的列数,因此需要先减去...
1,328,091
the-stack-v2-dedup
C
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "k.h" #include <stdbool.h> #include <ctype.h> void add_random_tile(struct game *game){ int row, col; // find random, but empty tile do{ row = rand() % SIZE; col = rand() % SIZE; }while(game->board[row][col] != ' '); ...
1,328,092
the-stack-v2-dedup
C
#define vdb_assert(EXPR) { if (!(EXPR)) { printf("[error]\n\tAssert failed at line %d in file %s:\n\t'%s'\n", __LINE__, __FILE__, #EXPR); return 0; } } #ifdef VDB_LOG_DEBUG #define vdb_log(...) { printf("[vdb] %s@L%d: ", __FILE__, __LINE__); printf(__VA_ARGS__); } #else #define vdb_log(...) { } #endif #defin...
1,328,093
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* list.h :+: :+: :+: ...
1,328,094
the-stack-v2-dedup
C
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
1,328,095
the-stack-v2-dedup
C
#include <stdio.h> int gcd(int a, int b){ if (a%b == 0){ return b; } else{ return gcd(b, a%b); } } int main(void){ int a, b, g; scanf("%d %d", &a, &b); if (a*a + b*b == 0){ g = -1; } else{ if (b == 0){ g = a; } else{ if (b < 0){ g = gcd(a, -b); ...
1,328,096
the-stack-v2-dedup
C
#include "DrvSPI.h" #include "DrvPDMA.h" #include "icSPI.h" /* * Instruction set */ #define IS_WRITE_ENABLE ((unsigned char)0x06) #define IS_WRITE_DISABLE ((unsigned char)0x04) #define IS_READ_STATUS_REGISTER ((unsigned char)0x05) #define IS_WRITE_STATUS_REGISTER ((unsigned char)0x01) #define IS_R...
1,328,097
the-stack-v2-dedup
C
#ifndef MIPD_H_ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <sys/socket.h> #include <net/ethernet.h> #include <net/if.h> #include <sys/epoll.h> #include <arpa/inet.h> #include <linux/if_packet.h> #include <sys/types.h> #include <ifaddrs.h> #include <unistd.h> #include <sys/u...
1,328,098
the-stack-v2-dedup
C
pthread_t make_match();
1,328,099