source
string
code_lang
string
content
string
idx
int64
the-stack-v2-dedup
C
/*****************************Copyright(c)**************************************************************** ** Guangzhou ZHIYUAN electronics Co.,LTD. ** ** http://www.embedtools.com ** **------File Info--------------------------------------------------------------------------...
1,329,200
the-stack-v2-dedup
C
#include <21sh.h> int tputc(int c) { t_term *term; term = ft_term(); return ((int)write(term->fd, &c, 1)); }
1,329,201
the-stack-v2-dedup
C
/* csp2sr.h -- macro definitions for csp2sr */ #if defined(__STDC__) || defined(__sgi) || defined(_AIX) #define PASTE(a,b) a##b #define PASTE3(a,b,c) a##b##c #define PASTE4(a,b,c,d) a##b##c##d #define LITERAL(x) #x #else #define IDENT(s) s #define PASTE(a,b) IDENT(a)b #define PASTE3(a,b,c) PASTE(a,b)c #define PASTE4...
1,329,202
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_print_sgl_caracter.c :+: :+: :+: ...
1,329,203
the-stack-v2-dedup
C
/* * SPI_Driver.h * * Created on: Jan 18, 2021 * Author: elghazawy */ #ifndef SPI_DRIVER_H_ #define SPI_DRIVER_H_ void SPI_init(void); void SPI_send(unsigned char data); #endif /* SPI_DRIVER_H_ */
1,329,204
the-stack-v2-dedup
C
#include "./report/report1.h" #include "./usart/bsp_debug_usart.h" #include <string.h> //#include "stm32f4xx_it.h" extern uint8_t CENTER_BUF[200]; //extern uint8_t BD_count; uint8_t hexChars[200]; uint8_t CRC_BD[3]; uint32_t SendAddr=314147; uint32_t MyAdder=314192; static void ByteUtill() { const uint8_t hexArray[17]...
1,329,205
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_list_clear.c :+: :+: :+: ...
1,329,206
the-stack-v2-dedup
C
void cancelarAsiento(int **avion,int row,int col){ int row_user, col_user, intento, cancelacion=1; //PROCESO DE RESERVA DE LOS ASIENTOS do{ printf("Indique el asiento que desee cancelar (fila columna): "); scanf("%d %d",&row_user,&col_user); //printf("Asiento a cancelar %d\n",p...
1,329,207
the-stack-v2-dedup
C
#include "StyleLexers.h" KEYWORDLIST KeyWords_JS = { "abstract boolean break byte case catch char class const continue debugger default delete do " "double else enum export extends false final finally float for function goto if implements " "import in instanceof int interface let long native new null package private ...
1,329,208
the-stack-v2-dedup
C
#include<stdio.h> int main() { int aa[100],i,n,t,j,a,b; while(1) { printf("Input No. of Elements\n"); scanf("%d",&n); printf("Input Elements\n"); for(i=1; i<=n; i++) { scanf("%d",&aa[i]); } printf("Swap positions\n"); scanf("%d %d",...
1,329,209
the-stack-v2-dedup
C
/* ** Name: Yeti3D ** Desc: Portable GameBoy Advanced 3D Engine ** Auth: Derek J. Evans <derek@theteahouse.com.au> ** ** Copyright (C) 2003 Derek J. Evans. All Rights Reserved. ** ** YY YY EEEEEE TTTTTT IIIIII 33333 DDDDD ** YY YY EE TT II 33 DD DD ** YYYY EEEE TT II 333 DD DD ** Y...
1,329,210
the-stack-v2-dedup
C
#include <string.h> #include <sys/select.h> #include <stdio.h> #include <assert.h> #include <sys/socket.h> #include <arpa/inet.h> #include <unistd.h> #include "http.h" #include "dbg.h" char *strnstr(const char *s1, const char *s2, size_t len) { size_t l2; l2 = strlen(s2); if (!l2) return (char *)s1; while (len...
1,329,211
the-stack-v2-dedup
C
// // This C-language parser code was generated by APG Version 7.0. // User modifications may cause unpredictable results. // /* ************************************************************************************* Copyright (c) 2021, Lowell D. Thomas All rights reserved. This file was generated by and is...
1,329,212
the-stack-v2-dedup
C
#include "controller.h" #include "platform.h" //STD include #include <stdio.h> #include <string.h> EventGroupHandle_t ctrlEventFlags; EventGroupHandle_t brthCycleState; #ifdef DEBUG SemaphoreHandle_t dbgMutex; #endif #define PRINT(_name) _name() { fprintf(stderr,"- " #_name "\n"); bool PRINT(test_assume_failure...
1,329,213
the-stack-v2-dedup
C
#pragma once #include <stdint.h> typedef uint8_t DataID; typedef uint8_t FacingID; struct BlockID { uint8_t value; BlockID() { value = 0; } BlockID(int value) { this->value = value; } operator int() { return value; } const BlockID operator=(const BlockID rvalue) { value = rvalue.value; retu...
1,329,214
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,215
the-stack-v2-dedup
C
/* ** EPITECH PROJECT, 2019 ** matchstick ** File description: ** main */ #include "struct.h" int check_arg(int ac, char **av) { if (ac != 3 || !my_str_isnum(av[1]) || !my_str_isnum(av[2])) return (-1); if (my_getnbr(av[1]) <= 1 || my_getnbr(av[1]) >= 100 || my_getnbr(av[2]) < 1) return (-1); ...
1,329,216
the-stack-v2-dedup
C
// // BTKRefreshingBlock.h // BTKLib // // Created by launching on 2017/10/12. // Copyright © 2017年 Min Lin. All rights reserved. // #ifndef BTKRefreshingBlock_h #define BTKRefreshingBlock_h typedef void (^MJRefreshingBlock) (NSInteger pageIndex); #endif /* BTKRefreshingBlock_h */
1,329,217
the-stack-v2-dedup
C
#include <stdio.h> int main(void) { int a,b,c,temp,f,g,h=1; int d,count=0; scanf("%d",&a); while(a!=0) { scanf("%d",&f); int ar[f]; scanf("%d",&d); count=0; for(g=0;g<f;g++) { scanf("%d",&ar[g]); } mergesort(ar,0,f-1); for(b=0;b<f;b++) ...
1,329,218
the-stack-v2-dedup
C
// gaibang npc code #include <ansi.h> #include "gaibang-master.h" inherit NPC; inherit F_MASTER; void do_answer(string); void get_class(string arg,object ob); void create() { set_name("裘万家", ({"qiu wanjia", "qiu", "wanjia"})); set("title",MAG "丐帮" NOR + YEL "二袋" NOR+ MAG "弟子" NOR); set("gende...
1,329,219
the-stack-v2-dedup
C
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt // Project developers. See the top-level LICENSE file for dates and other // details. No copyright assignment is required to contribute to VisIt. #include <PyTopologyAttributes.h> #include <ObserverToCallback.h> #include <stdio.h> #include <P...
1,329,220
the-stack-v2-dedup
C
#include <string.h> #include <limits.h> #include <sys/stat.h> #include <sys/types.h> #include <errno.h> int main(int argc, char *argv[]) { char current[256]; strcat(current,argv[0]); if (argc==3) { strcat(current,argv[2]); printf("%s\n",current ); if (mkdir(current, S_IRWXU)==-1) { printf("Di...
1,329,221
the-stack-v2-dedup
C
// Converted by AKWF2Teensy from AKWF_1352.wav. // AKWF2Teensy - Beerware by Datanoise.net. // Length: 257 const int16_t AKWF_1352[257] = { -110, 53, -18, 51, 40, 96, 118, 174, 220, 282, 346, 418, 499, 580, 677, 768, 878, 980, 1104, 1217, 1351, 1477, 1622, 1759, 1911, 2...
1,329,222
the-stack-v2-dedup
C
/* * Copyright (C) 2013 Sonu Abraham * Copyright (C) 2013 Tech Training Engineers * * The source code in this file can be freely used, adapted, * and redistributed in source or binary form, so long as an * acknowledgment appears in derived source files. * */ #include <linux/kernel.h> #include <linux/init.h> #i...
1,329,223
the-stack-v2-dedup
C
/* This file was autogenerated by raw2c. Visit http://www.devkitpro.org */ const unsigned char xc5_water[] = { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0xbc, 0x00, 0x00, 0x00, 0xbc, 0x08, 0x06, 0x00, 0x00, 0x00, 0xc2, 0x49, 0xc4, 0xab, 0x0...
1,329,224
the-stack-v2-dedup
C
//C Program for Students Marksheet Using Structure #include <stdio.h> #include <string.h> struct MARKSHEET { char name[20]; int rollno; int marks[10]; int total; float average; char rem[10]; char cl[20]; } std[100]; int main() { int a, b, n, flag = 1; printf("\nHow many s...
1,329,225
the-stack-v2-dedup
C
#include "stack.h" Stack *stCreate() { Stack *stack = (Stack *) malloc(sizeof(Stack)); assert(stack != NULL && "bad mem allocate"); stack->capacity = STACK_H_INIT_CAPACITY; stack->elementSize = sizeof(stData); stack->size = 0; stack->data = (stData *) malloc(STACK_H_INIT_CAPACITY * stack->eleme...
1,329,226
the-stack-v2-dedup
C
#pragma once #include "../types/SocketPrimitives.h" struct CBKeepalive { static const int Id = 0x21; SocketLong KeepaliveId; // normal servers use epoch milliseconds friend SocketOStream& operator<<(SocketOStream& sock, const CBKeepalive& out) { return sock << out.KeepaliveId; } ...
1,329,227
the-stack-v2-dedup
C
#include <stdio.h> int a[50]; int partition( int lb, int ub) { int temp,pivot = a[lb]; int up = ub, down = lb; while(down<up) { while(a[down]<=pivot && down<ub) down++; while(a[up]>pivot) up--; if(down<up) { temp = a[down]...
1,329,228
the-stack-v2-dedup
C
#include <boss.h> #if BOSS_NEED_ADDON_ZIPA #include "boss_integration_ziparchive-4.6.7.h" #include <addon/ziparchive-4.6.7_for_boss/ZipArchive/zlib/adler32.c> #include <addon/ziparchive-4.6.7_for_boss/ZipArchive/zlib/compress.c> #include <addon/ziparchive-4.6.7_for_boss/ZipArchive/zlib/crc32.c> #include <addon/zipar...
1,329,229
the-stack-v2-dedup
C
// ////////////////////////////////////////////////////////////////////////////// // // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies th...
1,329,230
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* :::::::: */ /* ft_putstr.c :+: :+: ...
1,329,231
the-stack-v2-dedup
C
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { int a[4]; scanf("%d %d %d %d", &a[0], &a[1], &a[2], &a[3]); int i ; int max = a[0]; for (i = 1; i<4; i++){ if (max < a[i]) max = a[i]; } printf("%d", max); return 0; }
1,329,232
the-stack-v2-dedup
C
//lestat 2001 for dtxy //为了如来任务修改 // hunyuan-zhang.c 混元掌 #include <ansi.h> inherit SKILL; mapping *action = ({ ([ "action" : "$N一式"+HIW"「白云出岫」"+NOR",双掌间升起一团淡淡的白雾,缓缓推向$n的$l", "dodge": 15, "parry": -5, "force" : 180, "damage_type" : "瘀伤" ]), ([ "action" : "$N并指如剑,一式"+RED...
1,329,233
the-stack-v2-dedup
C
// Student 1: Yan Xiao // Student 2: Zeming Li // Team number: 32 #include "ep.h" void eeprom_write_info(void) { uint16_t addr; uint16_t addr_start; unsigned char student1[80] = "Zeming Li\n"; unsigned char student2[80] = "Yan Xiao\n"; unsigned char team_num[80] = "32\n"; addr_start = ADDR_START; for(addr = a...
1,329,234
the-stack-v2-dedup
C
#include <stdio.h> int main(){ int row; printf("Input triangle high:"); scanf("%d",&row); int i=row; int count = row; label: if(i==0){ count = count*2+1; last: printf("*"); count--; if(count==0) goto out; goto last;...
1,329,235
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "cgic.h" #include "device_sql.h" #define NET_SIZE 50 int cgiMain() { char ip[NET_SIZE]; char netmask[NET_SIZE]; char gateway[NET_SIZE]; memset(ip,0,sizeof(ip)); memset(netmask,0,sizeof(netmask)); memset(gateway,0,sizeof(gateway)); cgiHead...
1,329,236
the-stack-v2-dedup
C
#include<stdio.h> #include<limits.h> int harr[100009]; int capacity; int heap_size; int parent(int i) { return (i-1)/2; } int left(int i) { return (2*i + 1); } int right(int i) { return (2*i + 2); } int getMax() { return harr[0]; } void MaxHeap(int cap) { heap_size = 0; capacity = cap; } void ins...
1,329,237
the-stack-v2-dedup
C
#ifndef __GUN_H__ #define __GUN_H__ #ifndef FRICTION_WHEEL #define FRICTION_WHEEL #endif #if defined(FRICTION_WHEEL) #define PWM1 TIM5->CCR1 #define PWM2 TIM5->CCR2 #define PWM3 TIM9->CCR1 #define InitFrictionWheel() \ PWM1 = 1000; \ PWM2 = 1000; #define SetFricti...
1,329,238
the-stack-v2-dedup
C
#include "generate_pixel_frequency.h" long int *generate_pixel_frequency(struct PGM_Image *input_pgm_image, int *number_of_non_zero_values_in_the_frequency_array){ // Dynamically allocates long int array long int* pixels = calloc(MAX_GRAY_VALUE + 1, sizeof(long int)); // Going through each pixel in the image ...
1,329,239
the-stack-v2-dedup
C
/* * psql - the PostgreSQL interactive terminal * * Copyright (c) 2000-2005, PostgreSQL Global Development Group * * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.110.2.1 2005/11/22 18:23:27 momjian Exp $ */ #include "postgres_fe.h" #include "common.h" #include <ctype.h> #ifndef HAVE_STRDUP #include <strdup.h> #e...
1,329,240
the-stack-v2-dedup
C
#ifndef _GLOBAL_H_ #define _GLOBAL_H_ #include "xvid.h" #include "portab.h" /* --- macroblock modes --- */ #define MODE_INTER 0 #define MODE_INTER_Q 1 #define MODE_INTER4V 2 #define MODE_INTRA 3 #define MODE_INTRA_Q 4 #define MODE_STUFFING 7 #define MODE_NOT_CODED 16 /* --- bframe specific --- *...
1,329,241
the-stack-v2-dedup
C
/** * This file is generated by Overture's VDM-to-C code generator version 0.1.9-SNAPSHOT. * Website: https://github.com/overturetool/vdm2c */ #include "IntPort.h" #include <stdio.h> #include <string.h> /* ------------------------------- * * Memory management methods * --------------------------------- */ void ...
1,329,242
the-stack-v2-dedup
C
#include <ntddk.h> #include "process.h" #include "service.h" /* Another option who cost me a few nights... We hide a service by attaching to services.exe process. we need to manually find the service list entry (double-chained list) and to modify id. Thx to i.m.weasel for showing u...
1,329,243
the-stack-v2-dedup
C
#define MPICH_SKIP_MPICXX 1 #define OMPI_SKIP_MPICXX 1 #include "mpi4py_MPI.c"
1,329,244
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "opcodes.h" #include <stdint.h> int main(int argc, char **argv) { FILE *inputfile; FILE *outputfile; char *line = NULL; size_t len = 0; ssize_t read; char opcode[8]; char arg1[24]; char arg2[24]; inputfile = fopen(argv[1], "r"); outputfile...
1,329,245
the-stack-v2-dedup
C
oThis is a new file added a modification
1,329,246
the-stack-v2-dedup
C
//=--------------------------------------------------------------------------= // MSScript.h //=--------------------------------------------------------------------------= // (C) Copyright 1996 Microsoft Corporation. All Rights Reserved. // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KI...
1,329,247
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <pwd.h> #include <grp.h> #include <string.h> #include <errno.h> int main(int argc, char **argv) { struct passwd *pwd; //struct passwd *getpwnam(const char *name); pwd = getpwnam(argv[2]); #if 0 struct passwd { ch...
1,329,248
the-stack-v2-dedup
C
/* * Author: Vinicius Ferraco Arruda * Email: viniciusferracoarruda@gmail.com * Website: viniciusarruda.github.io * Professor: Thiago Oliveira dos Santos * Subject: Computer Graphics * Assignment: Implementation of a gameplay. * */ // mudar o nome desse arquivo .. pq da o display no minimap tbm... #include <...
1,329,249
the-stack-v2-dedup
C
#ifdef CONFIG_ARCH_OMAP3 static int* var; int func() { return *var; } #endif /* CONFIG_ARCH_OMAP3 */ int main() { #ifdef CONFIG_ARCH_OMAP3 return 1; #endif return 0; }
1,329,250
the-stack-v2-dedup
C
cocci_test_suite() { u32 cocci_id/* arch/powerpc/kvm/e500_emulate.c 348 */; struct kvmppc_vcpu_e500 *cocci_id/* arch/powerpc/kvm/e500_emulate.c 324 */; ulong *cocci_id/* arch/powerpc/kvm/e500_emulate.c 322 */; struct kvm_vcpu *cocci_id/* arch/powerpc/kvm/e500_emulate.c 322 */; ulong cocci_id/* arch/powerpc/kvm/e50...
1,329,251
the-stack-v2-dedup
C
#define totfile 278 char *filename[totfile]={ "../pc_data/Avy.p", "../pc_data/add_Uru.p", "../pc_data/add_aMwa.p", "../pc_data/add_abbAyi.p", "../pc_data/add_bAludu.p", "../pc_data/add_baMdi.p", "../pc_data/add_beVMdu.p", "../pc_data/add_bonu.p", "../pc_data/add_buddi.p", "../pc_data/add_cenu.p", "../pc_data/add_cillu...
1,329,252
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_print_comb.c :+: :+: :+: ...
1,329,253
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
1,329,254
the-stack-v2-dedup
C
#include "types.h" #include "user.h" int main(void) { char* inmsg = "Hello, world!"; char* outmsg = 0; int* outlen = 0; int err; printf(1, "testing buffer\n"); if (buf_setup()) { printf(2, "error setting up buffer\n"); exit(); } printf(1, "putting message of size %d: ...
1,329,255
the-stack-v2-dedup
C
/* ********************************************** */ /* */ /* vc_bzero.c */ /* */ /* By: Team D - Alex, Chin, Giada, Suelen, Yukako */ /* */ /*...
1,329,256
the-stack-v2-dedup
C
c copyright notice c Copyright 2013 Sandia Corporation c c Under the terms of Contract DE-AC04-94AL85000 with Sandia c Corporation, the U.S. Government retains certain rights in this c software. ...
1,329,257
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_putchar_fd.c :+: :+: :+: ...
1,329,258
the-stack-v2-dedup
C
#include "Tree.h" /* Helper functions */ node* createNode(void* value){ node* n = malloc(sizeof(node)); n->value = value; n->rhc = n->lhc = n->parent = NULL; return n; } int isEmpty(Tree* t){ return t->size == 0; } int displayNodes(int leadingDashes, node* n){ if (n != NULL) { displayNodes(leadingDashes+1, ...
1,329,259
the-stack-v2-dedup
C
/*------------------------------------------------------------------------------ * gnsslib.h : program constants, types and function prototypes * * version : yyyy/mm/dd ver description * 2018/03/22 1.0 create * 2018/04/26 1.1 modify type definition * 2018/11/26 1.2 modify constants * * Copyright (C) 2018...
1,329,260
the-stack-v2-dedup
C
#include "~ProfGothicHotelController.0000.0000.Header.h" /* State Simulator Display Entity */ void adm_sim_display_entity_state( void) { adm_base_string_typ buffer [ADM_SIM_BUFFER_SIZE]; adm_base_integer_typ width; adm_ent_state_typ * ent_state; adm_sim_width_state_typ width_st...
1,329,261
the-stack-v2-dedup
C
#include <avr/io.h> #include <avr/interrupt.h> #include <timers.h> #include <config.h> #include <servo.h> #ifdef REV_2 void init_servo(){ DDRB |= 1<<6; TCCR1A |= (1 << COM1B1); // TCCR1A &= ~(1 << COM1B0); OCR1B = 375; } void set_servo_position(int degrees){ if(degrees > 179) degrees = 179; if(de...
1,329,262
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,263
the-stack-v2-dedup
C
#pragma once #include <stdint.h> #include <stddef.h> #include <assert.h> #include <stdbool.h> #include <stdio.h> typedef enum { TYPE_UNUSED = 0, TYPE_NIL, TYPE_BOOL, TYPE_INT, TYPE_CHAR, TYPE_SYMBOL, TYPE_STRING, TYPE_STRING_BODY, TYPE_PAIR, TYPE_LAMBDA, TYPE_CFUNC, TYPE_BUNDLE, TYPE_CONTINUATION, TYPE_...
1,329,264
the-stack-v2-dedup
C
#include <stdio.h> #define N 20 int main(){ int matriz[N][N]; int NUM_LIN,NUM_COL,i,c; printf("Digite as linhas, e colunas: \n"); scanf("%d %d",&NUM_LIN,&NUM_COL); printf("Digite os dados: \n"); for (i=0; i < NUM_LIN;i++) for (c=0; c < NUM_COL;c++) scanf("%d",&matriz[i][c]); printf("\n"); for (i=0;i < NUM_LIN;i++){...
1,329,265
the-stack-v2-dedup
C
#include "holberton.h" /** * _strpbrk - move the pointer * @s: string to compare * @accept: string to compare * Return: s, the pointer in a new address */ char *_strpbrk(char *s, char *accept) { int a, b; a = 0; while (s[a] != '\0') { b = 0; while (accept[b] != '\0') { if (s[a] == accept[b]) { s ...
1,329,266
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include<ctype.h> #include<math.h> int zhongzu[401]; int zuizu[401]; int max=0,j=0; int kpow(int x,int y); int dsf(int w,int n,int p,int k); int duibi(int *zhongzu,int *zuizu,int k); int main(int argc, char *argv[]) { int n,p,k,w,q; scanf("%d%d%d",&n,&k,&p); w=20; while(1){ ...
1,329,267
the-stack-v2-dedup
C
#include <Stdio.h> int main() { int age; char wm; printf("성별(F/M) 입력 : "); scanf("%c", &wm); printf("나이 입력 : "); scanf("%d", &age); if (age < 20) { printf("미성년 "); if (wm == 'F') printf("여자입니다. \n"); else printf("남자입니다. \n"); } else { printf("성인 "); if (wm == 'F') printf("여자입니다. \n"); else printf("남자...
1,329,268
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* test_strings.c :+: :+: :+: ...
1,329,269
the-stack-v2-dedup
C
#include <stdio.h> #include <cs50.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <math.h> int main(void) { int octave; int A4 = 4; int freq; string note = "C4"; string NOTES = "C#D#EF#G#A#B"; int tone; int toneCalculator(int i, string a, string b, float c, float d...
1,329,270
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* fdf.h :+: :+: :+: ...
1,329,271
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,272
the-stack-v2-dedup
C
/* * Copyright 2006 by Spectrum Digital Incorporated. * All rights reserved. Property of Spectrum Digital Incorporated. */ /* * VCXO Test * */ #include "stdio.h" #include "evmdm6437.h" #include "pwm.h" #include "timer.h" /* ------------------------------------------------------------------------ * * ...
1,329,273
the-stack-v2-dedup
C
#ifndef _APP_H_ #define _APP_H_ #include "includes.h" #include "app.h" #include "GUI.h" #include "DIALOG.h" #define APPBKCOLOR GUI_WHITE #define APPTEXTCOLOR GUI_MAGENTA extern uint8_t tpad_flag; extern uint8_t UserApp_Flag; extern FIL file; extern FRESULT result; extern UINT ...
1,329,274
the-stack-v2-dedup
C
/* * storages.c * * Created on: 29.11.2018 * Author: MB */ #include "storages.h" #define ADDRESS_CAN_ID ((uint16_t)0x0000) #define ADDRESS_ACTIVE_PULSE_SENSOR ((uint16_t)0x0004) #define ADDRESS_CHANNEL_MODI ((uint16_t)0x0008) void SafeGlobalCanId(uint16_t id) { if (!EE_Write(ADDRESS_CAN_ID, id)) { /...
1,329,275
the-stack-v2-dedup
C
# include<stdio.h> # include<math.h> int main() { int t,n,b,x,y; scanf("%d",&t); while(t--) { int num1[100]={0},num2[100]={0}; int sum[100],ans; ans=0; scanf("%d%d%d%d",&n,&b,&x,&y); int i=99; while(x) { num1[i--] = x % b; x /= b; } i=99; while(y) { num2[i--] = ...
1,329,276
the-stack-v2-dedup
C
// test.C to // conclusion: better to put all the definition together, usin inline function // operator >> over load for Class and Structor #include <iostream> #include <cmath> #include <vector> using namespace std; // class CPts class CPts{ /// PUBLIC /// mainly for read/write public: /// cint >> pt (notice opera...
1,329,277
the-stack-v2-dedup
C
int abs(int x) { float a[10]; if (x>=0) return a; else return -x; } int main() { int i, j, k; i = 10; }
1,329,278
the-stack-v2-dedup
C
/home/action/.parts/packages/apr/1.5.0/include/apr_ring.h
1,329,279
the-stack-v2-dedup
C
/******************************************************************************/ /*! \file PlayerMovementComponent.h \author Evan Kau \date 3/13/2017 \par Project: BlastDroids \par Copyright © 2017 DigiPen (USA) Corporation. \brief */ /******************************************************************...
1,329,280
the-stack-v2-dedup
C
#ifndef RFM_RF_TUNER_UMID_H #define RFM_RF_TUNER_UMID_H /*! @file rfm_rf_tuner_umid.h @brief RF Driver's RF Tuner external interface file to export RF Tuner MSGR UMIDs. */ /*============================================================================== Copyright (c) 2012 Qualcomm Technologies Incorpor...
1,329,281
the-stack-v2-dedup
C
#include <stdio.h> #include <limits.h> #define max 10 #define V 4 int TSP(int, int, int[max][max]); int visited_all_cities = (1 << V) - 1; int main(int argc, char const *argv[]) { int graph[max][max] = {{0, 20, 42, 25}, {20, 0, 30, 34}, {42, 30, 0, 10}, ...
1,329,282
the-stack-v2-dedup
C
/* * * PSET 1: Pig Esperanto * Kazemi Adachi * CPSC 223, Prof James Aspnes * * A program which translates text into "Pig Esperanto", * a language which is derived from "Pig Latin" via "Pig Elvish". * * For each input, alphabetical word: * 1. Move the first letter to the end. * 2. Add the letters "an" to the...
1,329,283
the-stack-v2-dedup
C
#include "type.h" struct user users[MaxUsers]; int userNum; struct group groups[MaxGroups]; int groupNum; struct message *buffer[1024]; int buffLen=0; struct epoll_event ev; int epfd; int curfds; void setnonblocking(int sock) { int opts; opts=fcntl(sock,F_GETFL); if(opts<0){ printf("...
1,329,284
the-stack-v2-dedup
C
#include <stdio.h> #ifdef SIZE int main() { int arr[SIZE]; #ifdef DEBUG printf("The size of array is %d\n", SIZE); #endif printf("Give the elements to fill the array\n"); for(int i = 0; i < SIZE; ++i) { scanf("%d", &arr[i]); #ifdef DEBUG printf("You inserted value : %d ...
1,329,285
the-stack-v2-dedup
C
/** * op_add - Function that adds two integers * @a: First num * @b: Second num * Return: sum */ int op_add(int a, int b) { return (a + b); } /** * op_sub - Function that subtracts two integers * @a: First num * @b: Second num * Return: Difference */ int op_sub(int a, int b) { return (a - b); } /** * op_mu...
1,329,286
the-stack-v2-dedup
C
#ifndef _LINK_VISUAL_IPC_H #define _LINK_VISUAL_IPC_H #include "link_visual_def.h" #ifdef __cplusplus extern "C" { #endif /*--------------------——-- SDK业务相关的消息通知 ----------------------------*/ /** * @brief 通知设备开始推流 * * @param [IN] service_id: 推流服务ID * @param [IN] type: 推流服务的类型 * @param [IN] param: 可变参数,根据ty...
1,329,287
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstiter.c :+: :+: :+: ...
1,329,288
the-stack-v2-dedup
C
#include <stdio.h> int main() { printf("Escreva a linha:\n"); char linha[41]; scanf(" %[^\n]s", linha); int vogais[5] = {0, 0, 0, 0, 0}; int i; for(i = 0; linha[i] != '\0'; i++) { if(linha[i] == 'a') vogais[0]++; if(linha[i] == 'e') vogais[1]++; if(linha[i] == 'i') vogais[2]++; if(linha[i] == 'o') vog...
1,329,289
the-stack-v2-dedup
C
#include "FreeRTOS.h" #include "task.h" #include "upload.h" #include "zhitai_task.h" #include "gpio.h" #include "../mpu6050/mpu6050.h" #include "../i2c/i2c.h" #include "../dmp/eMPL/inv_mpu_dmp_motion_driver.h" #include "../dmp/eMPL/inv_mpu.h" #include "../csb/i2c_CSB.h" #include "math.h" #define q30 1073741824.0f t...
1,329,290
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,291
the-stack-v2-dedup
C
/****************************************************************************** * * Copyright 2019 Barun Corechips All Rights Reserved * * Project : 11_FOR * Filename : main.c * Author : sj.yang * Version : 1.0 * *******************************************************************************/ #include <stdio.h...
1,329,292
the-stack-v2-dedup
C
#define CNS unsigned char cn[16*1+16*3+16*4+16*3+32*1] = { \ 0xBD, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ \ 0x87, 0xD5, 0xC4, 0x70, 0xFB, 0xBA, 0x2A, 0x85, 0x4D, 0xBE, 0x4C, 0x10, 0xD4, 0x6C, 0x8D, 0x80, \ 0x63, 0xC0, 0x7E, 0xEA, 0x94, 0xF7, 0x8C, 0x6A, 0x8...
1,329,293
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,294
the-stack-v2-dedup
C
#include <arpa/inet.h> #include <netinet/in.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> int main(){ char buf[BUFSIZ] = {0}; in_addr_t ip = 0; struct sockaddr_in sock; memset(&sock, 0, sizeof(sock)); while(1){ printf("Input addr : "); fgets(b...
1,329,295
the-stack-v2-dedup
C
#include<mysql/mysql.h> #include<stdio.h> #include<string.h> #include"select.h" int myselect(const char *password,const char* usrname){ char client[] = "root"; char server[] = "localhost"; char code[] ="root"; MYSQL *sql = mysql_init(NULL); MYSQL_RES *sql_res; MYSQL_FIELD *field; ...
1,329,296
the-stack-v2-dedup
C
#pragma once #include <stddef.h> typedef size_t off_t; typedef int ssize_t;
1,329,297
the-stack-v2-dedup
C
// Program to insert one character string into another string. #include <stdio.h> int stringLength (const char string[]) { int count = 0; while (string[count] != '\0') ++ count; return count; } void insertString (char source[], char s[], int i) { int j, lenS, lenSource; /* first, find out how big the tw...
1,329,298
the-stack-v2-dedup
C
void vbewrite(u16 index, u16 value); void vbeset(u16 xres, u16 yres, u16 bpp);
1,329,299