source
string
code_lang
string
content
string
idx
int64
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> extern int set_control_fct(); void main(){ const char * masks[] = { "0 - Invalid operation exception mask \n", "1 - Denormal operand exception mask \n", "2 - Zero divide exception mask \n", "3 - Overflow exception mask \n", "4 - Underflow exception mask \n", "5 - Precision ...
1,328,700
the-stack-v2-dedup
C
#include <stdlib.h> #include <stdio.h> // Check out this C program which creates an exact copy of a linked list. copy_linked_lists ( struct node *q , struct node **s ) { if ( q != NULL ) { *s = malloc ( sizeof ( struct node ) ) ; ( *s ) -> data = q -> data ; ( *s ) -> link = NULL ; copy_linked_list ( q -> link...
1,328,701
the-stack-v2-dedup
C
/* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /* * @addtogroup t_i2c_basic * @{ * @defgroup t_i2c_read_write test_i2c_read_write * @brief TestPurpose: verify I2C master can read and write * @} */ #include <zephyr/drivers/i2c.h> #include <zephyr/kernel.h> #include <zeph...
1,328,702
the-stack-v2-dedup
C
#if 0 //101 ๋ฉ”๋ชจ๋ฆฌ ๋น„๊ตํ•˜๊ธฐ(memcmp) #include<stdio.h> #include<string.h> void main() { char s1[100] = "123"; char s2[100] = "123"; strcpy_s(&s1[4],sizeof(&s1[4]), "abc"); strcpy_s(&s2[4], sizeof(&s2[4]), "efg"); if (strcmp(s1, s2) == 0) { puts("strcmp: ๋ฒ„ํผ์˜ ๊ฐ’์ด ์ผ์น˜ํ•ฉ๋‹ˆ๋‹ค."); } if (memcmp(s1, s2, 7) == 0) { puts("mem...
1,328,703
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,704
the-stack-v2-dedup
C
#include <errno.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/ip.h> #include <arpa/inet.h> int serverProcess() { size_t kMaxClients = 10; size_t count = 0; int sockFd = socket(AF_INET, SOCK_STREAM, 0); if ...
1,328,705
the-stack-v2-dedup
C
/* * 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 * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be usefu...
1,328,706
the-stack-v2-dedup
C
#include <DAU.h> #include <sys/time.h> long interval(struct timeval *begtime,struct timeval *endtime) { long ret; ret=endtime->tv_sec-begtime->tv_sec; ret*=1000000; ret += endtime->tv_usec - begtime->tv_usec; return ret; } T_PkgType sum_tpl[]={ {CH_DOUBLE,sizeof(double),"sum(v1+v2) sum...
1,328,707
the-stack-v2-dedup
C
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <limits.h> #include "jlib.h" void Reverse(char s[]); /* ItoB: converts base b (where 2 <= b <= 16) integer n to a string s */ char *jlib_ItoB(long n, char s[], int b){ if(n > INT_MAX || n < INT_MIN){ printf("Number %ld is outside the integer ran...
1,328,708
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_ls.h :+: :+: :+: ...
1,328,709
the-stack-v2-dedup
C
#ifndef DISPLAY_MANAGER_H #define DISPLAY_MANAGER_H extern bool failed; void initGLFW(); GLFWwindow* createDisplay(); void loadGLAD(); #endif
1,328,710
the-stack-v2-dedup
C
/* Nord Theme static const char nord0[] = #2E3440 static const char nord1[] = #3B4252 static const char nord2[] = #434C5E static const char nord3[] = #4C566A static const char nord4[] = #D8DEE9 static const char nord5[] = #E5E9F0 static const char nord6[] = #ECEFF4 static const char nord7[] = #8FBCBB s...
1,328,711
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "vars.h" FILE *fp; word words[10]; int numW=0; //create a word word *makeWord(char *string){ word *newWord=(word *) malloc(sizeof(word)); newWord->str=string; newWord->num=1; return newWord; } //expand words void expand(){ wo...
1,328,712
the-stack-v2-dedup
C
/* * * Program for https://leetcode.com/problems/largest-rectangle-in-histogram/ * * @author: Rajan, @Roll_Number: 1910990184 */ #include <assert.h> #include <stdlib.h> int *stack; int size; int top; // resizes the stack array to double of orginal size // Time Complexity : O(size) void resize() { size *= 2; ...
1,328,713
the-stack-v2-dedup
C
void PrintArray(int array[], int size); void Swap(int *, int *);
1,328,714
the-stack-v2-dedup
C
#include<stdio.h> #include<stdlib.h> struct node{ int data; struct node * l,*r; }; struct node *insert(struct node *root,int d){ struct node *temp =(struct node *)malloc(sizeof(struct node)); temp->data=d; temp->l=temp->r=NULL; if(!root) return temp; if(root->data >d) root->l = insert(root->l,d); else root->r = insert(...
1,328,715
the-stack-v2-dedup
C
#include "hash.h" #include "object.h" //Symbol*new_symbol(unsigned char*s, unsigned long i); mpz_ptr new_long(); mpz_ptr new_long_valued(long val); mpz_ptr new_long_str(char* s); typedef void*(*Funcpointer)(Vector*); enum CODE { STOP, LDC, LD, ADD, CALL, RTN, SEL, JOIN, LDF, SET, LEQ, LDG, GSET, SUB, \ ...
1,328,716
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_cheat_play.c :+: :+: :+: ...
1,328,717
the-stack-v2-dedup
C
#include <stdio.h> #include "csapp.h" /* WebProxy Lab */ /* Logging: * Log on each line each message: * Date: browserIP URL size * browserIP is the IP of the client * URL is the site URL * size is the number of bytes in reply - Received from end server from when the connection is opened to closed * Only requests ...
1,328,718
the-stack-v2-dedup
C
// // main.c // Practica9Grafos1.2 // // Created by Isaรญ Vargas on 11/3/17. // Copyright ยฉ 2017 Isaรญ Vargas. All rights reserved. // #include <stdio.h> #include <stdlib.h> #define sizename 0 //Estructuras principales //funcion que crea la matriz int *bornmatrix(int *sizematriz); short int verticesnum(int *matrix,...
1,328,719
the-stack-v2-dedup
C
/* 5 */ #include "test.h" int foo(int, int); int foo(int a, int b) { return a + b; } int main() { print_int(foo(2,3)); }
1,328,720
the-stack-v2-dedup
C
/* * func2.c * * Created on: Feb 17, 2019 * Author: AVE-LAP-005 */ #include <stdio.h> void func2(){ printf("hello func2"); }
1,328,721
the-stack-v2-dedup
C
int f2(int x) {return 0;} // ODR violation in c.h #include "c.h" S g() {return {};}
1,328,722
the-stack-v2-dedup
C
/* twi.h - TWI/I2C library for Wiring & Arduino Copyright (c) 2006 Nicholas Zambetti. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the...
1,328,723
the-stack-v2-dedup
C
#include <stdio.h> int indexNum[4][6] = { {3,1,0,5,4,2},{2,1,5,0,4,3},{1,5,2,3,0,4},{4,0,2,3,5,1} }; int nowindex[6] = { 0,1,2,3,4,5 }; int tmpindex[6] = { 0 }; int dice[6] = { 0 }; int maps[20][20]; int nx[4] = { 0,0,-1,1 }; //๋™ ์„œ ๋ถ ๋‚จ int ny[4] = { 1,-1,0,0 }; int n, m; int x, y, k; int out(int x, int y)...
1,328,724
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
1,328,725
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_join.c :+: :+: :+: ...
1,328,726
the-stack-v2-dedup
C
#ifndef __GPIO_H #define __GPIO_H //#include "core_cm4.h" #include "RDA5991H.h" #define PORT_SHIFT 8 #define GPIO_PINNUM 28 #define NONE (uint32_t)NC #define GPIO_INT_CTRL_REG (RDA_GPIO->INTCTRL) #define GPIO_INT_SEL_REG (RDA_GPIO->INTSEL) #define GPIO_DATA_IN_REG ...
1,328,727
the-stack-v2-dedup
C
#include <stdio.h> int main(void){ int n = 0; scanf("%d", &n); int m, k, res = 0; for(int i = 0; i < 1001; i++){ k = n - (5 * i); if(k==0) {res = i; break;} if(k < 0) break; m = k%3; if(m==0){ res = k/3 + i; } } if(res==0){ ...
1,328,728
the-stack-v2-dedup
C
#ifndef __INCLUDED_LOGGER_H__ #define __INCLUDED_LOGGER_H__ #include "type.h" void logger_init(void); void logger_putc(UB c); void logger_output(void); #endif
1,328,729
the-stack-v2-dedup
C
/* * This text was generated automatically * It provides the ISC implementation of * MPI_Cart_rank */ #include <_mpi.h> #ifdef __GNUC__ void MPI_CART_RANK() __attribute__ ((weak, alias("iscf_cart_rank"))); void mpi_cart_rank() __attribute__ ((weak, alias("iscf_cart_rank"))); void mpi_cart_rank_() __attribute__ (...
1,328,730
the-stack-v2-dedup
C
/** * @file thread_mutexer.h Thread Mutexer * @author Robert Weng <robert_3000@sina.com> * @version 0.1 * @date 2011.07.11 * * */ #ifndef __THREAD_MUTEXER_H__ #define __THREAD_MUTEXER_H__ #include <public/gen_int.h> #include <public/gen_def.h> #include <public/gen_platform.h> #include <public/gen_error.h> #...
1,328,731
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* command_pwd.c :+: :+: :+: ...
1,328,732
the-stack-v2-dedup
C
#include<stdlib.h> #include<stdio.h> int triangulo(int num1, int num2, int num3); int modulo(int val1, int val2); int main(){ int num1 = 0, num2 = 0, num3 = 0; printf("Digite o valor do primeiro lado: "); scanf("%d", &num1); printf("Digite o valor do segundo lado: "); scanf("%d", &num2); printf("Digite...
1,328,733
the-stack-v2-dedup
C
/* 1๋ฒˆ while ์€ ์กฐ๊ฑด์ด ๋งž์„ ์‹œ์—๋งŒ ์‹คํ–‰ํ•˜๋Š”๊ฑฐ๊ณ  do while์€ ์ผ๋‹จ ์‹คํ–‰์„ ํ•˜๊ณ  ์กฐ๊ฑด์ด ๋งž๋Š”๋‹ค๋ฉด ๋‹ค์‹œ ์‹คํ–‰ํ•˜๋Š” ๊ฒƒ์ด๋‹ค. 2๋ฒˆ 1 if (x < 10 || x > 20) printf("%d\n", x); 2 if (x > 10 && x < 20) printf("%d\n", x); 3๋ฒˆ 1 break๊ฐ€ ์—†๋‹ค 2 else๋Š” ํ•˜๋‚˜๋งŒ ๋‚˜์™€์•ผํ•˜๋ฉฐ else ๋’ค์—๋Š” ์กฐ๊ฑด์ด ๋ถ™์œผ๋ฉด ์•ˆ๋œ๋‹ค 2๋ฒˆ์„ ๋งž๊ฒŒ ์ˆ˜์ •ํ•˜๋ ค๋ฉด 3๋ฒˆ์งธ์ค„์˜ else๋ฅผ if else๋กœ ๋ฐ”๊พธ๊ณ  5๋ฒˆ์งธ์ค„์˜ else ๋’ค์˜(n == 0)์„ ์ง€์›Œ์•ผํ•œ๋‹ค. 3 for ์•ˆ์—์„œ i = 1 / i <= 10...
1,328,734
the-stack-v2-dedup
C
/* Gruppe: A317a Studieretning: Software Opdateret: 09-12-2018 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "sqlite3.h" #define MAX_CHAR 100 #define MAX_GROUP 248 /* Struct array */ typedef struct{ int id; char maerke[MAX_CHAR]; char model[MAX_CHAR];...
1,328,735
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <../src/libcontainer.h> void print_all(List_header *linked_list) { List_node *tmp_node; static int print_num = 0; printf("---------- list print #%d ------------\n", ++print_num); LIST_FOREACH(linked_list, tmp_node) { puts(LIST_GET_DATA_FRO...
1,328,736
the-stack-v2-dedup
C
#include "config.h" #include "libavutil/attributes.h" #include "libavcodec/avcodec.h" #include "libavcodec/vp3dsp.h" #include "vp3dsp_mips.h" #if HAVE_MSA static av_cold void vp3dsp_init_msa(VP3DSPContext *c, int flags) { c->put_no_rnd_pixels_l2 = ff_put_no_rnd_pixels_l2_msa; c->idct_add = ff...
1,328,737
the-stack-v2-dedup
C
/* g++ PNsim.c++ -o PNsim On my honor, I have neither given nor received unauthorized aid on this assignment Name: Tao Chen UFID: 18816215 */ #include<fstream> #include<iostream> #include <string.h> typedef unsigned char u8; typedef unsigned int u32; using namespace std; typedef struct place { u8 penable; u8...
1,328,738
the-stack-v2-dedup
C
#include <bmd_config.h> #if CDK_CONFIG_INCLUDE_BCM56524_A0 == 1 /* * * This software is governed by the Broadcom Switch APIs license. * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenMDK/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All ri...
1,328,739
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstadd_back.c :+: :+: :+: ...
1,328,740
the-stack-v2-dedup
C
/**@brief CRC-8 routine * @author Richard James Howe * @license MIT */ #ifndef CRC8_H #define CRC8_H #include <stdint.h> #include <stddef.h> #ifdef __cplusplus extern "C" { #endif uint8_t crc8(const uint8_t * const data, const size_t length); #ifdef __cplusplus } #endif #endif
1,328,741
the-stack-v2-dedup
C
/* ################################################################################ # # r8168 is the Linux device driver released for RealTek RTL8168B/8111B, # RTL8168C/8111C, RTL8168CP/8111CP, RTL8168D/8111D, RTL8168DP/8111DP, and # RTL8168E/8111E Gigabit Ethernet controllers with PCI-Express interface. # # Copyright(...
1,328,742
the-stack-v2-dedup
C
{ //=========Macro generated from canvas: c/The canvas //========= (Fri Nov 17 12:36:21 2017) by ROOT version5.34/34 TCanvas *c = new TCanvas("c", "The canvas",1,1,800,576); gStyle->SetOptFit(1); c->SetHighLightColor(2); c->Range(0.3375,-8.329279,0.9625,74.9635); c->SetBorderSize(2); c->SetFrameFillC...
1,328,743
the-stack-v2-dedup
C
/* * Shiying Zheng and Ben Stern hw9 * The encode program */ #include "huffmantree.h" /* * The comparator for huffmantree. * Takes in two void pointers, returns an integer which is positive if * a's count is bigger than b's count, negative if smaller, and zero if equal. */ int cmp(void* a, void* b){ huff...
1,328,744
the-stack-v2-dedup
C
/* * config.h * * Created on: 15 abr. 2018 * Author: utnso */ #ifndef CONFIG_COORDINADOR_H_ #define CONFIG_COORDINADOR_H_ #include "typedefs.h" #include <commons/log.h> #include "algoritmos_distribucion.h" extern t_log *logger; extern config configuracion; void configurar(char *ruta); void limpiar_confi...
1,328,745
the-stack-v2-dedup
C
/*************************************************************************** Source file CAN_Communication_trc_ptr.c: Definition of function that initializes the global TRC pointers RTI1401 7.2 (02-May-2014) Tue Jan 13 20:02:23 2015 (c) Copyright 2008, dSPACE GmbH. All rights reserved. ************...
1,328,746
the-stack-v2-dedup
C
////////////////////////////////////////////////////////////////////////////////// // Tuscarora Software Suite. The Samraksh Company. All rights reserved. // Please see License.txt file in the software root directory for usage rights. // Please see developer's manual for implementation notes. /////////////////////...
1,328,747
the-stack-v2-dedup
C
// Copyright 2009 Segher Boessenkool <segher@kernel.crashing.org> // Licensed under the terms of the GNU GPL, version 2 // http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt #include "types.h" #include <stdlib.h> #include "i2c.h" static void i2c_bus_find_device(struct i2c_bus *bus, u8 address) { struct i2c_dev...
1,328,748
the-stack-v2-dedup
C
#include <stdio.h> int main () { int a = 5; int b = 10; int c = (a + (~ b + 1)); printf("%d", c); return 0; }
1,328,749
the-stack-v2-dedup
C
#ifndef _PACK_H #define _PACK_H #include "params.h" void pack(unsigned char *out, const size_t outlen, const uint16_t *in, const size_t inlen, const unsigned char lsb); void unpack(uint16_t *out, const size_t outlen, const unsigned char *in, const size_t inlen, const unsigned char lsb); void clear_words(void* mem, ...
1,328,750
the-stack-v2-dedup
C
#define SRC_OPNERR "[3][Druckersource kann |nicht gelesen werden! ][ OK ]" #define DES_OPNERR "[3][Zieldatei konnte |nicht geโ€ffnet werden! ][ OK ]" #define SRC_ERR "[3][Fehler im Druckersource! ][ OK ]"
1,328,751
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* parcing_utils3.c :+: :+: :+: ...
1,328,752
the-stack-v2-dedup
C
#ifndef GLM_VEC1_H #define GLM_VEC1_H #include "./ext/vector_float1.h" #include "./ext/vector_double1.h" #include "./ext/vector_int1.h" #include "./ext/vector_uint1.h" #include "./ext/vector_bool1.h" #endif /* GLM_VEC1_H */
1,328,753
the-stack-v2-dedup
C
/* display.c - Controls the OLED display, showing the stats of the helicopter. Contributers: Hassan Ali Alhujhoj, Abdullah Naeem and Daniel Page Last modified: 1.6.2019 */ #include <stdint.h> #include <stdbool.h> #include "utils/ustdlib.h" #include "OrbitOLED/OrbitOLEDInterface.h" #include "OrbitOLED/lib_orb...
1,328,754
the-stack-v2-dedup
C
#pragma once // #define ADDITIONAL #define NO_CHECK #include "kat.h" #include "sparkle.h" #define crypto_aead_encrypt schwaemm_256_128_aead_encrypt #define crypto_aead_decrypt schwaemm_256_128_aead_decrypt //#define crypto_aead_encrypt_2 schwaemm_128_128_aead_encrypt //#define crypto_aead_decrypt_2 schwaemm_128_128_...
1,328,755
the-stack-v2-dedup
C
#include <stdio.h> #include <string.h> #include "y.tab.h" char* usage = "assembler input-file"; extern void yyparse(); int main(int argc, char* argv[]) { if(argc < 1 || strcmp(argv[1],"-h")==0 || 0==strcmp(argv[1],"--help")) { printf("%s\n", usage); return 1; } FILE* fp = (FILE*)fopen(argv[1], "r"); yyparse...
1,328,756
the-stack-v2-dedup
C
// Top-down red-black tree implementation without deletions, // so free() does not appear. #include <stdlib.h> #include <stdio.h> #include "topdownRB.h" link z,head; // Pointers to sentinel and root Item NULLitem=(-9999999); // Data for sentinel int trace=0; // Controls trace output for insert link ...
1,328,757
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* play.c :+: :+: :+: ...
1,328,758
the-stack-v2-dedup
C
#include <inttypes.h> #include <stdio.h> #include "wristband.h" #include "nrf_drv_gpiote.h" #include "app_uart.h" #include "nrf_delay.h" #define SOFA_PERIOD 32768UL // one second #define SECOND 32768UL // one second #define PREFIX0NOTUSED 0x0UL // Not used #define MSG_TYPE_BEACON 0x1UL // Beacon #define MSG_TYPE_AC...
1,328,759
the-stack-v2-dedup
C
#include<stdio.h> #include<windows.h> #include<stdlib.h> #include<string.h> int CompInt(const void* x, const void* y){ int* n1 = (int*)(x); int* n2 = (int*)(y); if (*n1 > *n2){ return 1; } else if (*n1 < *n2){ return -1; } else{ return 0; } } void PrintArr(int arr[], int size){ for (int i = 0; i < size;...
1,328,760
the-stack-v2-dedup
C
/* ---------------------------------------------------------------------------- */ /* Microchip Microcontroller Software Support */ /* SAM Software Package License */ /* --------------------------------------------------------------------...
1,328,761
the-stack-v2-dedup
C
#include <sys/socket.h> #include<arpa/inet.h> #include<ctype.h> #include<unistd.h> #include<stdio.h> #include<sys/types.h> #include<strings.h> #include<sys/wait.h> #include<pthread.h> #include<fcntl.h> #include"wrap.h" #define MAXSIAE 10240 #define SERV_IP "127.0.0.1" #define SERV_PORT 6666 //"192.168.32.30" int m...
1,328,762
the-stack-v2-dedup
C
#include "TFT_objects.h" #include "TFT_resources.h" //--------------------- User code ---------------------// //----------------- End of User code ------------------// // Event Handlers
1,328,763
the-stack-v2-dedup
C
../../../AVOSCloudIM/AVOS/AVOSCloudIM/Protobuf/LCGPBDuration.pbobjc.h
1,328,764
the-stack-v2-dedup
C
// // main.c // Average is not Fast Enough! // // Created by MacBook on 13/05/17. // Copyright ยฉ 2017 Bruno Botelho. All rights reserved. // #include <stdio.h> int main(int argc, const char * argv[]) { // insert code here... int sections,h,m,s,continua=1,team; long long int resultM; double resultS...
1,328,765
the-stack-v2-dedup
C
/* Decreasing Sequence with Difference Decreasing Two integers N and D are passed as input. The program must print the decreasing sequence from N with common difference D. The difference D is decremented by 1 when calculating the values every time. The sequence is printed until D becomes zero. Boundary Condition...
1,328,766
the-stack-v2-dedup
C
/* $OpenBSD: dma-buf.h,v 1.4 2022/03/01 04:08:04 jsg Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. ...
1,328,767
the-stack-v2-dedup
C
#include <stdlib.h> typedef struct { int len; void *data; int flag; } Message; typedef struct { int fieldA; int fieldB; } Data; void* ker_malloc(int size, int id) { return malloc(size); } void* ker_msg_take_data(int size, void* data) { return malloc(size); } void ker_free(void *data) { ...
1,328,768
the-stack-v2-dedup
C
#include<stdio.h> #include<stdlib.h> #pragma warning(disable : 4996) int main(void) { int day = 0, y=1; float z1=1,z2=1; float x1=1,x2=1; float n=1,m=1; FILE*ABC; ABC = fopen("C://ABC.txt","w"); if (ABC == NULL) { printf("ๆช”ๆกˆ้–‹ๅ•Ÿๅคฑๆ•—!!\n"); } else { printf("่ซ‹่ผธๅ…ฅๆฌฒ้”็›ฎๆจ™็š„ๆ™‚้–“"); scanf_s("%d", &y); printf("่ซ‹่ผธ...
1,328,769
the-stack-v2-dedup
C
struct Enviroment { static let rootAPI = "http://magic.huypham.me" }
1,328,770
the-stack-v2-dedup
C
#ifndef __ATLSTR_H #define __ATLSTR_H #endif
1,328,771
the-stack-v2-dedup
C
/* * dict_info.h * Author:shoru * 2009-08-23 12:53 */ #ifndef _DICT_IFO_H #define _DICT_IFO_H /* * ๆต‹่ฏ•ๅผ€ๅ…ณ */ #define DEBUG /* * ่กŒ็ผ“ๅ†ฒๅŒบๅคงๅฐ */ #define BUFFER_SIZE 500 /* * ifoๆ–‡ไปถๅŽ็ผ€ */ #define IFO_EXT ".ifo" /* * dict info file struct. */ typedef struct { char version[100]; //็‰ˆๆœฌ int wordcount; //ๅ•่ฏๆ•ฐ้‡ in...
1,328,772
the-stack-v2-dedup
C
/*Definitons to run Mathematica CForms*/ #define Power(x, y) (pow((double)(x), (double)(y))) #define Sqrt(x) (sqrt((double)(x))) #define Cos(x) (cos((double)(x))) #define Sin(x) (sin((double)(x))) #define Abs(x) (fabs((double)(x))) #define Pi acos(-1.) /*Parameters taken from PDG, in GeV*/ #define GF 1.1663787E-5...
1,328,773
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdint.h> #include "mem_manager.h" #ifndef BITLEVEL_IO_CODE #define BITLEVEL_IO_CODE #define BUFFER_SIZE 1048576 struct bitlevel_object { uint64_t value; uint64_t length; }; struct bitlevel_file_pointer { FILE * file_pointer; uint64_t bu...
1,328,774
the-stack-v2-dedup
C
#include <stdio.h> #include <string.h> #include <math.h> void addnmul(int a, int b) { printf("%d\n",a+b); printf("%d",a*b); } int main() { int _a; scanf("%d", &_a); int _b; scanf("%d", &_b); addnmul(_a, _b); return 0; }
1,328,775
the-stack-v2-dedup
C
////////////////////////////// // SOURCE FILE uart.c // ////////////////////////////// /************************************************************************** * Eingebettete Betriebssysteme (EBSy) * * ...
1,328,776
the-stack-v2-dedup
C
#include <machinarium.h> #include <odyssey_test.h> static int coroutine_call = 0; static void coroutine(void *arg) { (void)arg; coroutine_call++; machine_stop_current(); } void machinarium_test_create0(void) { machinarium_init(); int id; id = machine_create("test", coroutine, NULL); test(id != -1); int rc...
1,328,777
the-stack-v2-dedup
C
#include <stdio.h> #define MAX_BUFFER 200 #define UPPER_CAP 80 long get_line(char buffer[],int max_size); int main(){ char buffer[MAX_BUFFER]; long length; while((length=get_line(buffer,MAX_BUFFER)) > 0){ if(length > UPPER_CAP){ printf("-%s\t[%ld]\n",buffer,length); } } } ...
1,328,778
the-stack-v2-dedup
C
#include"prototypes.h" void merge(int arr[], int offset, int mid, int size) { int n1 = mid - offset + 1; int n2 = size - mid; int* l = (int*)calloc(n1 + 1, sizeof(int)); int* r = (int*)calloc(n2 + 1, sizeof(int)); int i, j, k; for(i = 0; i < n1; i++) { *(l + i) = arr[offset + i]; } for(j = 0; j < n2; j++) { ...
1,328,779
the-stack-v2-dedup
C
#include<math.h> #include "ajit_cortos.h" int b; void main() {} void ajit_entry_func_001() { b = (int)cos(0); } void ajit_entry_func_010() { b = (int)cos(0); }
1,328,780
the-stack-v2-dedup
C
#include <malloc.h> #include <assert.h> struct malloc_chunk { INTERNAL_SIZE_T prev_size; /* Size of previous chunk (if free). */ INTERNAL_SIZE_T size; /* Size in bytes, including overhead. */ struct malloc_chunk* fd; /* double links -- used only if free. */ struct malloc_chunk* bk; } __attribute__((__may_al...
1,328,781
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,782
the-stack-v2-dedup
C
#ifndef __ATINY_SOCK_H__ #define __ATINY_SOCK_H__ int atiny_parse_address(struct sockaddr_in *addr, char *server_ip, unsigned int server_port); #endif
1,328,783
the-stack-v2-dedup
C
U2FsdGVkX19fTms3OENxUgMH1joHHWYe9dGN4ecAiivEYW30yYQIPv8DQ7V/OFod VQCwLg/F3k5xx9Gk5DOFIFUAsC4Pxd5OccfRpOQzhSBVALAuD8XeTnHH0aTkM4Ug VQCwLg/F3k5xx9Gk5DOFIOGRfN6BhZ+oMMpVHnzGKvHFavPrOLM4is+f5+wKOVYE /tzB9Ba0iIxqgUX2zzcAFT+0r9LqZ8mvEMo3PxLQFoB3Nqws9/kn6DXdOD+LNUFX RcR1ZPHxx/GmAkD8B1zLO1i0l2MPKKWmGb/6cMe4QfViaF5ohnYsHs90gYzl...
1,328,784
the-stack-v2-dedup
C
/* db.h -- compression database This file is part of the LZO real-time data compression library. Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer All Rights Reserved. The LZO library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
1,328,785
the-stack-v2-dedup
C
#include <stdio.h> #include <math.h> #define Pi 3.14159 //Syntax for creating a constant in C void main() { int l = 10; int d = 20; float areaCuadrado,areaCirculo; float sumaAreas; int areaMayor; areaCuadrado = pow(l,2); areaCirculo = Pi * d; sumaAreas = areaCuadrado + areaCirculo; ...
1,328,786
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* lemin.h :+: :+: :+: ...
1,328,787
the-stack-v2-dedup
C
#include <stdio.h> int N, S[2] = { 100,100 }, a, b; int main() { freopen("data.txt", "r", stdin); scanf("%d",&N); while (N--) { scanf("%d %d", &a, &b); if (a < b) S[0] -= b; if (b < a) S[1] -= a; } printf("%d\n%d\n", S[0], S[1]); return 0; }
1,328,788
the-stack-v2-dedup
C
#pragma once #include <wtypes.h> enum trafficColor { red = RGB(255, 0, 0), black = RGB(0, 0, 0), gray = RGB(100, 100, 100), yellow = RGB(255, 255, 0), green = RGB(0, 255, 0) }; enum trafficState { stop = 0, readyGo = 1, go = 2, readyStop = 3 }; enum trafficDirection {pn = 0, ps = 1, pe = 2, pw = 3 };
1,328,789
the-stack-v2-dedup
C
#ifndef _LIST_H #define _LIST_H #define LIST(type) struct { type *head, *tail; } #define LIST_INIT(list) \ do { (list).head = NULL; (list).tail = NULL; } while (0) #define LINK(type) struct { type *prev, *next; } #define LINK_INIT_TYPE(elt, link, type) \ do { ...
1,328,790
the-stack-v2-dedup
C
/* * DrvPwnSoft.h * * Created: 23/10/2016 12:58:24 * Author: berryer */ #ifndef DRVPWM_SOFT_H_ #define DRVPWM_SOFT_H_ #include "Tools/tools_typedefs.h" #include "Drv/DrvIo.h" ////////////////////////////////////////////PUBLIC DEFINES/////////////////////////////////////////// //TIMER #define PRESCALER_NO ...
1,328,791
the-stack-v2-dedup
C
#include <stdio.h> #include "myMath.h" int main() { double x; printf("Please enter a real number:\n"); scanf("%lf", &x); //Calculation and printing fx1 float fx1 = sub(add(Exp(x),Pow(x, 3)),2); printf("The value of f(x) = e^x+x^3-2 at the point %0.4lf is: %0.4f\n", x, fx1); //Calculation and prin...
1,328,792
the-stack-v2-dedup
C
/* * Copyright (c) 2013 Samsung Electronics Co., Ltd. * Copyright (c) 2013 Linaro Ltd. * Author: Thomas Abraham <thomas.ab@samsung.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Fou...
1,328,793
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,794
the-stack-v2-dedup
C
#ifndef CONFIG_V3_H #define CONFIG_V3_H #define USE_LAMP 1 #define USE_PCF8574_LEDS 1 // All available buttons. enum { BUTTON_PLAYER_1, BUTTON_PLAYER_2, BUTTON_PLAYER_3, BUTTON_PLAYER_4, BUTTON_PLAYER_5, BUTTON_PLAYER_6, BUTTON_CONTROL_1, BUTTON_CONTROL_2, BUTTON_CONTROL_3, BUTTON_COUNT = BUTTON...
1,328,795
the-stack-v2-dedup
C
//Cracked by Roath #include <armor.h> #include <ansi.h> inherit HEAD; void create() { set_name(HIW "่ฑก็‰™่€ณ้ฅฐ" NOR, ({ "ivory earring", "earring" })); set("weight", 50); if (clonep()) set_default_object(__FILE__); else { set("unit", "ๅฏน"); set("...
1,328,796
the-stack-v2-dedup
C
#include <stdio.h> int rev(int x) { int y = 0; printf("rev(int x = %d) before \n", x); if( x < 1 ) return 0; y = rev(x - 1); printf("rev(int x = %d) after \n", x); return y; } int main(void) { char test[] = "aaaaaaaaaaaaaa"; rev(3); printf("%s\n", test); }
1,328,797
the-stack-v2-dedup
C
#pragma once #include "windivert.h" void InitShowPacketInfo(int LogToConsole); void ShowPacketInfo(WINDIVERT_ADDRESS addr, unsigned char *packet, unsigned int len);
1,328,798
the-stack-v2-dedup
C
int testor(); int main(){ abi_setup(); return !(testor()==3); }
1,328,799