source
string
code_lang
string
content
string
idx
int64
the-stack-v2-dedup
C
#include<stdio.h> #include <stdlib.h> #include <time.h> int main(){ int a[10], i; a[0]= 0; srand(time(NULL)); for(i = 1; i < 10; i++){ a[i]= rand(); } printf("A: "); for(int i =0; i < 10; i++){ if(i != 9) printf("%d, ",a[i]); else printf("%d\n",a[i]); } int arr[10]; int *ap ...
1,329,100
the-stack-v2-dedup
C
/* ******************************************************************************* * * vdm_utl_hex.h * * Copyright (c) 1999-2017 Redbend. All Rights Reserved. * ******************************************************************************* */ /*! **************************************************************...
1,329,101
the-stack-v2-dedup
C
// Copyright (C) 1995, by Tie Yu and Daniel Yu. All rights reserved. inherit ROOM; void create() { set("short","中天门"); set("long",@LONG 中天门位泰山正中,地处黄岘岭,中溪在这蜿蜒而下,以甘冽的清 泉和悦耳的泉声迎接奋力登山的游人。一个巨大的门楼是中天门的胜景 依傍着嶙峋的山石,石雕门楼是那么的精巧,但又浑然天成,历代经无 数能工巧匠的描绘,中天门已经成为了一个永远留传的艺术史诗。再往 上便是出名的胜景---云步桥。 LONG ); set("exits",...
1,329,102
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_isalpha.c :+: :+: :+: ...
1,329,103
the-stack-v2-dedup
C
#include "minitalk_bonus.h" void ft_sent_str_sub(pid_t pid, char c) { int i; int bit; i = 0; while (i < 8) { usleep(55); bit = (c >> i) & 1; if (bit == 1) bit = kill(pid, SIGUSR1); else bit = kill(pid, SIGUSR2); if (bit == -1) exit(EXIT_FAILURE); i++; } return ; } v...
1,329,104
the-stack-v2-dedup
C
// Jacob Zimmer // jlz6w7 // 29 October 2017 #define Length 1 #include <stdio.h> #include <stdlib.h> char* copyString(char*, int*); int main(void) { int *length = malloc(sizeof(int)); printf("Enter a size to allocate memory for the string: "); scanf("%d", length); char *data = malloc(sizeof(ch...
1,329,105
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strcat.c :+: :+: :+: ...
1,329,106
the-stack-v2-dedup
C
#include <string.h> #include <kogata/malloc.h> #include <kogata/algo.h> // Hashing and comparing hash_t id_hash_fun(const void* v) { return (hash_t)v; } hash_t str_hash_fun(const void* v) { hash_t h = 712; for (char* s = (char*)v; *s != 0; s++) { h = h * 101 + *s; } return h; } bool id_key_eq_fun(const void...
1,329,107
the-stack-v2-dedup
C
$NetBSD: patch-src-config-param.i386_nbsd70.h,v 1.1 2012/08/30 17:37:55 jakllsch Exp $ --- src/config/param.i386_nbsd70.h.orig 2012-04-28 19:05:37.000000000 -0400 +++ src/config/param.i386_nbsd70.h 2012-04-28 19:05:59.000000000 -0400 @@ -0,0 +1,20 @@ +#ifndef AFS_I386_PARAM_H +#define AFS_I386_PARAM_H + ...
1,329,108
the-stack-v2-dedup
C
#ifndef __ASM_H #define __ASM_H #include <petscdm.h> #include <petsc/private/pcimpl.h> typedef struct { PetscInt n, n_local, n_local_true; PetscInt overlap; /* overlap requested by user */ KSP *ksp; /* linear solvers for each block */ VecScatter restriction; /* m...
1,329,109
the-stack-v2-dedup
C
#ifndef __BIGNUM_H__ #define __BIGNUM_H__ #include <stdio.h> #include <stdint.h> #include <assert.h> #include <stdbool.h> //#define WORD_SIZE 1 /* This macro defines the word size in bytes of the array that constitues the big-number data structure. */ #ifndef WORD_SIZE #define WORD_SIZE 4 #endif /* Size of big-numbe...
1,329,110
the-stack-v2-dedup
C
/* ============================================================================ Name : ClienteTP.c Author : Felipe Rey Version : Copyright : Felipe Description : Hello World in C, Ansi-style ============================================================================ */ /*==================[i...
1,329,111
the-stack-v2-dedup
C
/* ============================================================================ Name : clase7.c Author : Version : Copyright : Your copyright notice Description : Hello World in C, Ansi-style ============================================================================ */ #include <stdio.h> #...
1,329,112
the-stack-v2-dedup
C
#include "../tasking.h" #include "string.h" #include "stdio.h" #include "stdlib.h" #include "Memory/mem.h" #include "stdint.h" #include "Scheduler.h" #include "Arch/x86/DescriptorTables/desc.h" #include "Arch/x86/cpu/cpu.h" #include "../CancerTherapy/CancerCure.h" #include "Arch/x86.h" #include "Arch/x86/custom_defs....
1,329,113
the-stack-v2-dedup
C
//#include "header.h" void main(int a,char** b){ kernel_print("Hello World"); }
1,329,114
the-stack-v2-dedup
C
/* * Copyright (C) 2015 The Android Open Source Project * * 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 app...
1,329,115
the-stack-v2-dedup
C
#ifndef DEF_CONVERT #define DEF_CONVERT char *convert_base(char number[], int n, int m); void convert_test_1(); void convert_test_2(); void convert_test_3(); void convert_test_4(); void convert_test_5(); void convert_test_6(); #endif
1,329,116
the-stack-v2-dedup
C
#ifndef CLIENT #define CLIENT #include "main.h" #include <unistd.h> #include <tls.h> int verbose_flag, delete_flag, now_flag; char zeit[10]; struct tls_config* tlsClient_conf; void client(commandType type); void confSetup(Status stats[]); int processCommand(Status *stat); // TLS functions int sendHello(Status stat[...
1,329,117
the-stack-v2-dedup
C
/** * @file fld_tmap.c * @brief タウンマップ用 フィールド常駐関数群 * @author Miyuki Iwasawa * @date 06.04.05 */ #include "common.h" #define __FIELDSYS_H_GLOBAL__ #include "fieldsys.h" #include "field_subproc.h" #include "field/field.h" #include "field/townmap_footmark.h" #include "field/situation_local.h" #include "field/scrip...
1,329,118
the-stack-v2-dedup
C
/**************************************************************************//** * @file hsusbd_reg.h * @brief HSUSBD register definition header file * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2021 Nuvoton Technology Corp. All rights reserved. **************************************************...
1,329,119
the-stack-v2-dedup
C
/* DWARF2 EH unwinding support for PA HP-UX. Copyright (C) 2005-2022 Free Software Foundation, Inc. This file is part of GCC. GCC 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, or (at your ...
1,329,120
the-stack-v2-dedup
C
// Copyright 2015, VIXL authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions ...
1,329,121
the-stack-v2-dedup
C
#include <winsock2.h> #include <ws2tcpip.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include "net.h" #include "protocol.h" #include "game.h" #include "console.h" #define die(msg) {printf(msg); exit(1);} #define TICK_REST 50 int client_Ip = -1; int client_Port = -1; game_State* client_Game; SOC...
1,329,122
the-stack-v2-dedup
C
/* Added by weizj for meter */ #include "hsrv_inc.h" #include "hsrv_openflow.h" #include "hsrv_msg_openflow.h" #include "hsrv_openflow_meter_priv.h" #include "hsrv_openflow_meter.h" #define ____METER_MSG_API____ /************************************************************************************************* * Name...
1,329,123
the-stack-v2-dedup
C
NP/N (N/N)/(N/N) N/N N (S[dcl]\NP)/PP PP/NP NP/N N/PP PP/NP N CONJ NP/N N/N N (S[dcl]\NP)/PP PP/NP NP/N N
1,329,124
the-stack-v2-dedup
C
// Program to control the pi_car // // pi_car [-p <serial device>] // // by default the program attempts to open /dev/ttyACM0 // // -p <serial device> : Specify the serial port to use (e.g. /dev/ACM1) // // Build: gcc -o pi_car pi_car.c -lwiringPi // #include <arpa/inet.h> #include <ctype.h> #include <fcntl.h> #inc...
1,329,125
the-stack-v2-dedup
C
#include "riscv_math.h" #include <stdint.h> #include <stdlib.h> #include "../common.h" #include "../HelperFunctions/math_helper.c" #include "../HelperFunctions/ref_helper.c" #include <stdio.h> #define DELTAF32 (0.05f) #define DELTAQ31 (63) #define DELTAQ15 (1) #define DELTAQ7 (1) int test_flag_error = 0; /* The ...
1,329,126
the-stack-v2-dedup
C
#ifndef BITCOIN_CHAINPARAMSSEEDS_H #define BITCOIN_CHAINPARAMSSEEDS_H /** * List of fixed seed nodes for the strayacoin network * AUTOGENERATED by contrib/seeds/generate-seeds.py * * Each line contains a 16-byte IPv6 address and a port. * IPv4 as well as onion addresses are wrapped inside a IPv6 address accordingl...
1,329,127
the-stack-v2-dedup
C
#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> struct item { char filename[13]; uint32_t offset; uint32_t len; }; void tidyup(struct item *** items, int itemcount){ for (int i = 0; i < itemcount; i++) { free((*items)[i]); } free(*items); } int analys...
1,329,128
the-stack-v2-dedup
C
/* * Copyright(c) 2012-2022 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ #include "ocf_space.h" #include "ocf_lru.h" #include "utils/utils_cleaner.h" #include "utils/utils_cache_line.h" #include "utils/utils_generator.h" #include "utils/utils_parallelize.h" #include "concurrency/ocf_concurrency.h" #...
1,329,129
the-stack-v2-dedup
C
/* Copyright (c) 2019 Pascal van der Heiden, www.codeimp.com. This software is released under MIT license. */ #pragma once typedef unsigned int uint; typedef signed long long int int64; typedef unsigned long long int uint64;
1,329,130
the-stack-v2-dedup
C
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1999 - 1999 // // File: newtypes.h // //-------------------------------------------------------------------------- #if !defined(__midl) && defined(_X86_) &&...
1,329,131
the-stack-v2-dedup
C
/* ** EPITECH PROJECT, 2019 ** PSU_minishell2_2019 [WSL: Debian] ** File description: ** unsetenv.c */ #include "../lib/struckt.h" int second_argu(char *str) { suprr_space; for (int a = 0; a < my_strlen(var->first_argu); a++) *str++; if (my_strlen(str) == 0){ return (4); } var->se...
1,329,132
the-stack-v2-dedup
C
../../../TXChatCommon/src/TXChatCommonFramework/UIImageView_TXSDImage/UIImageView+TXSDImage.h
1,329,133
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strncat.c :+: :+: :+: ...
1,329,134
the-stack-v2-dedup
C
/* * File: F_T16N.h * * MATLAB Coder version : 3.1 * C/C++ source code generated on : 03-Nov-2017 14:06:29 */ #ifndef F_T16N_H #define F_T16N_H /* Include Files */ #include <float.h> #include <math.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include "rt_nonfinite.h" #include "rtwt...
1,329,135
the-stack-v2-dedup
C
// Npc: xinghu.c //by trill 02/04/97 inherit NPC; void create() { set_name( "邢虎", ({"xing hu", "robber"}) ); set("long", @LONG 一个中年汉子,样子较为猥琐,身材不高,一头乱发,身上的衣服破旧 脏乱。 LONG ); set( "gender", "男性" ); set( "attitude", "heroism" ); set( "age", 24 ); set( "qi",1000 ); set( "max_kee", 500 );...
1,329,136
the-stack-v2-dedup
C
/*********************************************************************** * @file ntc.h * NTC * @author : ch * @brief : * @version: v1.0 * @Copyright (C) 2020-12-07 .cdWFVCEL. all right reserved ***********************************************************************/ #ifndef __NTC__H_ #define __NTC__H_ /* 包含头文...
1,329,137
the-stack-v2-dedup
C
#include<stdio.h> /* 1 123 12345 1234567 123456789 1234567 12345 123 1 */ int main() { int row,col,range = 1; for( row = 1; row <= 9; row++ ) { for( col = 1; col <= range; col++ ) { printf("%d",col); } printf("\n"); if( row < 5 ) { range += 2; } else { range -= 2; } } return 0...
1,329,138
the-stack-v2-dedup
C
/*------------------------------------------------------------------------- * * fdwapi.h * API for foreign-data wrappers * * Copyright (c) 2010-2023, PostgreSQL Global Development Group * * src/include/foreign/fdwapi.h * *------------------------------------------------------------------------- */ #ifndef F...
1,329,139
the-stack-v2-dedup
C
#include<stdio.h> #include<unistd.h> #include<sys/types.h> #include<signal.h> #include<errno.h> void usr1_handler(int sig_num) {printf("Parent (%d) got SIGUSR1\n",getpid()); return ; } int main() {pid_t ret; int x; int status,role=-1; ret=fork(); if(ret>0) {printf("Parent Process:This is parent process %d\n",g...
1,329,140
the-stack-v2-dedup
C
/* ** EPITECH PROJECT, 2020 ** my.h ** File description: ** fichier h prototypes */ #ifndef matchstick_h #define matchstick_h #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include "my.h" typedef struct { int limit; ...
1,329,141
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <dos.h> #include <sys/nearptr.h> #include <sys/timeb.h> #include <math.h> #include <string.h> #include "BSP.H" #include "MATH.H" #include "GFX.H" #include "KEY_INPUT.H" #include "WALL.H" #define INPUT_STATUS 0x3DA #define VRETRACE_BIT 0x08 #define NUM_...
1,329,142
the-stack-v2-dedup
C
#ifndef __C_COMMON_H__ #define __C_COMMON_H__ #define NULL ((void*)0) typedef void * Calculator; typedef enum CalTypeEnum { CAL_TYPE_A_CPP, CAL_TYPE_A_C, } CalType; #define CAL_SUCCESS 0 #define CAL_UNIMPL -1 #define CAL_NULL -2 #endif /* __C_COMMON_H__ */
1,329,143
the-stack-v2-dedup
C
// @(#)root/matrix:$Id$ // Authors: Fons Rademakers, Eddy Offermann Feb 2004 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
1,329,144
the-stack-v2-dedup
C
#include<stdio.h> #include<ctype.h> #include<string.h> #include<math.h> //global defination for char as str typedef char* str; int read(str s); //main function int main(void){ str s; printf("Text:"); scanf("%s",s); int r=read(s); printf("%s",s); if(r<16){ printf("Grade %i",r); } else{ printf("Grasde %i+",...
1,329,145
the-stack-v2-dedup
C
#include "UART.h" #include "GPIO.h" void SystemInit(){} int main(void) { uint8_t Char = '0'; UART_Init('1',8,9600); pinMode(PortF,P1,Output); pinMode(PortF,P2,Output); pinMode(PortF,P3,Output); while(1){ Char = UART_Receive_Char('1'); if(Char =='F') { digitalWrite(PortF,P1,1); digitalWrite(PortF...
1,329,146
the-stack-v2-dedup
C
#include <stdlib.h> #include <string.h> #include <electionguard/api/create_election.h> #include <log.h> #include "api/base_hash.h" // Initialize static bool initialize_coordinator(void); static bool initialize_trustees(void); // Key Generation static bool generate_keys(void); static struct all_keys_received_message...
1,329,147
the-stack-v2-dedup
C
#ifndef BOOTPARA_H #define BOOTPARA_H struct BootPara { unsigned bpparam0[8192]; unsigned bpparam32768[168]; }; extern struct BootPara gBootPara; #endif /* BOOTPARA_H */
1,329,148
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <unistd.h> #include <json/json.h> #include "filepathnamesuffix.h" #include "WIFIAudio_RetJson.h" #include "WIFIAudio_FifoCommunication.h" #include <sys/time.h>//为了测试时间加的头文件 int WIFIAudio_PostInsertList_PostInsertList(void) {...
1,329,149
the-stack-v2-dedup
C
../dist/sh.dir.c
1,329,150
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <string.h> char *pt(char *ptr) { char temp[] = "yes you do"; ptr = (char *)malloc(strlen(temp)+1); strcpy(ptr,temp); printf("%p\n", temp); printf("%p\n", ptr); printf("%s\n", ptr); return ptr; } int main(void) { char *ptr; int *in; float *f1; double *f2; int...
1,329,151
the-stack-v2-dedup
C
/* $Id$ */ /* * build instructions: * * gcc -o bserver bserver.c * * Usage: * ./bserver */ #include <stdio.h> #include <pthread.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #define MAXBUF 65536 int sock_rd, sock_wr; st...
1,329,152
the-stack-v2-dedup
C
#ifndef GRAPHICS_H #define GRAPHICS_H #include <SDL2/SDL.h> #include "cards.h" /* Dimensions of the suit and text sprites in pixels. */ #define SUIT_WIDTH 128 #define SUIT_HEIGHT 128 #define TEXT_WIDTH 256 #define TEXT_HEIGHT 128 /* Textures used to render cards */ typedef struct { SDL_Texture *back; SDL_Te...
1,329,153
the-stack-v2-dedup
C
/******************************************************************************* * File Name: project.h * PSoC Creator 2.1 Component Pack 4 * * Description: * This file is automatically generated by PSoC Creator and should not * be edited by hand. * * *****************************************************...
1,329,154
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
1,329,155
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_freetab3d.c :+: :+: :+: ...
1,329,156
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_trt_prec.c :+: :+: :+: ...
1,329,157
the-stack-v2-dedup
C
// VisVIM.h : main header file for the VisVim DLL // #if !defined(AFX_VISVIM_H__AC72670B_2977_11D1_B2F3_006008040780__INCLUDED_) #define AFX_VISVIM_H__AC72670B_2977_11D1_B2F3_006008040780__INCLUDED_ #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource....
1,329,158
the-stack-v2-dedup
C
/*! \file \brief Map Description File Contains map's array and constants to create it */ #include "SFML/Graphics.hpp" #ifndef BASICSMETHODS_MAP_H #define BASICSMETHODS_MAP_H inline const int HEIGHT_MAP = 47;//размер карты высота inline const int WIDTH_MAP = 81;//размер карты ширина inline sf::String TileMap[HEIGHT_...
1,329,159
the-stack-v2-dedup
C
#ifndef __ERROR_NO_H #define __ERROR_NO_H //init_media start #define MALLOC_MEMORY_FAIL -1 #define AVFORMAT_OPEN_INPUT_FAIL -2 //open file failed #define AVFORMAT_FIND_STREAM_INFO -3 //get stream info fail #define INIT_DECODE_AUDIO_FAIL -4 //init_decode_audio fail #define INIT_DECODE_VIDEO_FAIL -5 ...
1,329,160
the-stack-v2-dedup
C
#ifndef _NEWSTRUCTS_H #define _NEWSTRUCTS_H typedef struct FILEDESC { char fileName[40]; short fileSize; int fileMode; char owner[40]; time_t creationTime; long indexOfNode; } FILEDESC; typedef struct INDEX_NODE { short index[127]; } INDEX_NODE; typedef struct FILE_DATA { char data[254]; } FILE_DATA; type...
1,329,161
the-stack-v2-dedup
C
#include<stdio.h> #include"file_1.h" void file_1() { printf("\nI am in file 1.\n"); }
1,329,162
the-stack-v2-dedup
C
#include <petscsys.h> #include <../src/sys/classes/viewer/impls/socket/socket.h> /* TAKEN from src/sys/fileio/sysio.c The swap byte routines are included here because the MATLAB programs that use this do NOT link to the PETSc libraries. */ #include <errno.h> #if defined(PETSC_HAVE_UNISTD_H) #include <unistd.h...
1,329,163
the-stack-v2-dedup
C
#define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> //作业2 //输入两个数,比较最大值 //MAX - 一般不建议用全大写写函数 //int Max(int x, int y) //{ // if (x > y) // return x; // else // return y; // //} // //int main() //{ // int a = 0; // int b = 0; // scanf("%d %d", &a, &b); // int m = Max(a, b); // printf("%d\n", m)...
1,329,164
the-stack-v2-dedup
C
/****************************************************************************** Copyright (C), 2016, Hisilicon Tech. Co., Ltd. ****************************************************************************** File Name : sc2231_cmos.c Version : Initial Draft Author : Hisilicon multimedia soft...
1,329,165
the-stack-v2-dedup
C
// diff3DUtil.c - 3D Diffusion under OpenACC // https://github.com/DrAl-HFS/Diffusion3D.git // (c) Diffusion3D Project Contributors Jan-June 2019 #include "diff3DUtil.h" #include "clusterMap.h" const D3MapElem gExtMask= 0x3f << 26; /***/ size_t d2I3 (int dx, int dy, int dz) { return( dx*dx + dy*dy + dz*dz ); } s...
1,329,166
the-stack-v2-dedup
C
#ifndef _FONT_H_ #define _FONT_H_ //请输入6位密码 extern unsigned char code wordMessage[][32]; //密码错误 extern unsigned char code errorMessage[][32]; //新 旧 extern unsigned char code newAndold[][32]; //0 -- 9 extern unsigned char code Number[][32]; //* extern unsigned char code maskMessage[][32]; //请按下手指 extern unsigned char...
1,329,167
the-stack-v2-dedup
C
type Obj = object(Any); type SymbObj = object(Atom); type LeafObj = object(<Atom, Int>); /////////////////////////////////////////////////////////////////////////////// type BasicTypeSymbol = type_symbol(Atom); type ParTypeSymbol = par_type_symbol(symbol: BasicTypeSymbol, params: [Type+]); type Typ...
1,329,168
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,329,169
the-stack-v2-dedup
C
/* ==================================================================== * 0fc7h * ==================================================================== */ void __stdcall G9_(PDISASM pMyDisasm) { GV.REGOPCODE = ((*((uint8_t*)(puint_t) (GV.EIP_+1))) >> 3) & 0x7; GV.MemDecoration = Arg2qword; MOD_...
1,329,170
the-stack-v2-dedup
C
#include <sys/types.h> #include <sys/ipc.h> #include <sys/shm.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <time.h> #include <sys/wait.h> void insertionSort(int arr[], int n); void merge(int arr[], int low1, int high1, int high2); void mergeSort(int arr[], int low, int high) { int i, l...
1,329,171
the-stack-v2-dedup
C
/************************************************************************* * * * Copyright c 1984 The board of trustees of the Leland Stanford * * Junior University. All rights reserved. * * This subroutine may not be used outside of the SUPREM4 computer * * program w...
1,329,172
the-stack-v2-dedup
C
#ifndef APP_CFG_MODULE_PRESENT #define APP_CFG_MODULE_PRESENT //任务开始优先级 #define APP_CFG_TASK_START_PRIO 2u //任务堆栈大小 #define APP_CFG_TASK_START_STK_SIZE 128u #define APP_CFG_TASK_BLINKY_STK_SIZE 128u //任务堆栈限度 #define APP_CFG_TASK_START_STK_SIZE_P...
1,329,173
the-stack-v2-dedup
C
// GGHASH:VESndnxqPcs7incGRNehJGxaAIvrJ_mqLEVfr7eEzhw000000f57 #ifndef __IF_TUN_H #define __IF_TUN_H #include <linux/types.h> #include <linux/if_ether.h> #include <linux/filter.h> #define TUN_READQ_SIZE 500 #define TUN_TUN_DEV IFF_TUN #define TUN_TAP_DEV IFF_TAP #define TUN_TYPE_MASK 0x000f #define TUNSETNOCSUM _IOW('...
1,329,174
the-stack-v2-dedup
C
#include<stdio.h> int main() { int x,y,z,i,t1; scanf("%d%d%d",&x,&y,&z); if(x>y) { t1=y+z; if(x>t1) { printf("+"); } else printf("?"); } else if(x<y) { t1=x+z; if(y>t1) { printf("-"); } else printf("?"); } else { if(z==0) { printf("0"); } else printf("?"); } return 0; }
1,329,175
the-stack-v2-dedup
C
/**************************************************************************** * * Audio Framework * --------------- * **************************************************************************** * ModZeroCrossingDetector.h *****************************************************************...
1,329,176
the-stack-v2-dedup
C
#ifndef SAIL_STATE_H #define SAIL_STATE_H struct sail_state; typedef struct sail_state sail_state; #endif
1,329,177
the-stack-v2-dedup
C
#include "sd.h" #include <stdio.h> #include <string.h> #include <sys/unistd.h> #include <sys/stat.h> #include "esp_err.h" #include "esp_log.h" #include "esp_vfs_fat.h" #include "driver/sdmmc_host.h" #include "driver/sdspi_host.h" #include "sdmmc_cmd.h" static const char *TAG = "example"; #define PIN_NUM_MISO 2 #defi...
1,329,178
the-stack-v2-dedup
C
#ifndef __VkEnums_h__ #define __VkEnums_h__ #pragma once K3D_VK_BEGIN namespace { VkShaderStageFlagBits g_ShaderType[rhi::EShaderType::ShaderTypeNum] = { VK_SHADER_STAGE_FRAGMENT_BIT, VK_SHADER_STAGE_VERTEX_BIT, VK_SHADER_STAGE_GEOMETRY_BIT, VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT, VK_SHADER_STAGE_TES...
1,329,179
the-stack-v2-dedup
C
void updateRobotPosition();
1,329,180
the-stack-v2-dedup
C
#include <u.h> #include <libc.h> void usage(void) { fprint(2, "usage: %s [-nv] [-d delims] args\n", argv0); exits("usage"); } void main(int argc, char *argv[]) { int nflag, vflag, i; char *delims = "[]"; nflag = 0; vflag = 0; ARGBEGIN{ case 'v': vflag = 1; break; case 'n': nflag = 1; break; ...
1,329,181
the-stack-v2-dedup
C
#include "contiki.h" #include "net/rime.h" #include "semantik.h" #include "util.h" #include "fuzzyElec.h" #define MAX_MEMBROS 3 #define MAX_VIZINHOS_SEMANTICOS 9 #define MAX_VIZINHOS 2 PROCESS(dfler_process, "dfler"); PROCESS(anuncio_process, "anuncio"); AUTOSTART_PROCESSES(&dfler_process,&anuncio_process); //**uni...
1,329,182
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_ocp.c :+: :+: :+: ...
1,329,183
the-stack-v2-dedup
C
/** * Copyright 2019 Netflix, 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 agreed ...
1,329,184
the-stack-v2-dedup
C
#include <effect.h> #include <blitter.h> #include <copper.h> #include <fx.h> #include <pixmap.h> #include <sprite.h> #include <system/memory.h> #define S_WIDTH 320 #define S_HEIGHT 256 #define S_DEPTH 4 #define WIDTH 64 #define HEIGHT 64 static PixmapT *textureHi, *textureLo; static PixmapT *chunky; static BitmapT *...
1,329,185
the-stack-v2-dedup
C
#ifndef _GLOBAL_SET_H #define _GLOBAL_SET_H #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <assert.h> #include <malloc.h> #include <string.h> #include <strings.h> #include <sys/socket.h> /*socket_function.h*/ #include <pthread.h> #include <event2/event.h> #include <event2/bufferevent.h> #include ...
1,329,186
the-stack-v2-dedup
C
#ifndef H_MG_NEURON #define H_MG_NEURON /* Neuron.h ----- LIF7 Auto-Didacte */ enum{ INPUT , HIDDEN , OUTPUT }; /* ----- Neuron structure ----- */ /** * @struct Neuron * @brief The basic entities of Neural Network. */ typedef struct { int type; /**< The type of the Neuron (can be INPUT, HIDD...
1,329,187
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_ft.c :+: :+: :+: ...
1,329,188
the-stack-v2-dedup
C
/* * CAN_PCKA.c * */ #include "CAN_PCKA.h" #include "DSP281x_Device.h" // DSP28 Headerfile Include File #include "DSP281x_Examples.h" // DSP28 Examples Include File #include "can.h" struct BMSSTATUS bms_status; union BMS_CMD_REG bms_cmd; struct BMS_DATA_1 bms_data1; struct BMS_DATA_2 bms_data2; struct BMS_...
1,329,189
the-stack-v2-dedup
C
/** *************************************************************************** * @file driverGPSAllentrance.c GPS Driver for Internal/GPS NAV. * * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF ME...
1,329,190
the-stack-v2-dedup
C
#ifndef SPX_THASHX2_H #define SPX_THASHX2_H #include <stdint.h> #include "context.h" #include "params.h" #define thashx2 SPX_NAMESPACE(thashx2) void thashx2(unsigned char *out0, unsigned char *out1, const unsigned char *in0, const unsigned char *in1, unsigned int in...
1,329,191
the-stack-v2-dedup
C
// // main.c // 线性表链式存储 // // Created by LIUYANG on 2020/4/6. // Copyright © 2020 LYG. All rights reserved. // #include <stdio.h> #include "stdlib.h" #define ERROR 0 #define OK 1 #define FALSE 0 #define TRUE 1 #define MAXSIZE 20 /* 储存空间初始分配量 */ typedef int Status;/* Status是函数的类型,其值是函数结果状态代码,如OK等 */ typedef int ...
1,329,192
the-stack-v2-dedup
C
#include "base_router.h" #include <assert.h> #include <stdlib.h> #include "placer.h" struct coordinate disp_backtrace(struct coordinate c, enum backtrace b) { switch (b) { case BT_WEST: c.x--; break; case BT_EAST: c.x++; break; case BT_NORTH: c.z--; break; case BT_SOUTH: c.z++; break; case BT_UP: c.y...
1,329,193
the-stack-v2-dedup
C
#include <stdio.h> void find_missing_number(int *v, int v_length) { // Write your code here // To print results to the standard output you can use printf() // Example: printf("%s", "Hello world!"); int sum = 0; int expected_sum = 0; int max = v_length+1; int i; for(i=0;i<v_length;i++) {...
1,329,194
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_atoi_base.c :+: :+: :+: ...
1,329,195
the-stack-v2-dedup
C
#ifndef _GQUEUE_H_ #define _GQUEUE_H_ #include "common.h" #define MINVALUE 0 /* define queue to remove node with minimum value */ #define MAXVALUE 1 /* define queue to remove node with maximum value */ #define FIFOBREAK 0 /* define queue to solve ambiguity by FIFO */ #define LIFOBREAK 1 /* define queue ...
1,329,196
the-stack-v2-dedup
C
#include "game.h" #include "stm32f1xx_hal.h" #include "tim.h" #include "stm32_tm1637.h" #include "mode.h" //Procedures void setTimeForBothPlayers (game_t *game) { game->times[PLAYER1].minutes = game->startTime.minutes; game->times[PLAYER1].seconds = game->startTime.seconds; game->times[PLAYER2].minutes...
1,329,197
the-stack-v2-dedup
C
/* * Copyright 2000, 2001 INRIA * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in sup...
1,329,198
the-stack-v2-dedup
C
/* * it.c * * Created on: Dec. 22, 2019 * Author: khoahuynh */ #include "main.h" extern UART_HandleTypeDef huart3; //chap5vid13 void SysTick_Handler (void) { HAL_IncTick(); HAL_SYSTICK_IRQHandler(); } void USART3_IRQHandler(void) // chap5vid17 { HAL_UART_IRQHandler(&huart3); }
1,329,199