source
string
code_lang
string
content
string
idx
int64
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* init_skybox.c :+: :+: :+: ...
1,330,300
the-stack-v2-dedup
C
#include<pthread.h> #include<baseDatos.h> #include<stdio.h> #include<stdlib.h> #include"baseDatos.h" int Conectar(char *direccionIP){ int puede_conectar; puede_conectar= PuedeConectarse(direccionIP); if(puede_conectar == 0){ return 0; } else{ return 1; } } void *funcionAgente(void *parametros){ ...
1,330,301
the-stack-v2-dedup
C
#include <stdio.h> void Temperatures(float fahrenheit); int main(void) { double fahrenheit; printf("please enter Temperatures in fahrenheit:"); while(scanf("%lf",&fahrenheit) == 1) { Temperatures(fahrenheit); printf("please enter Temperatures in fahrenheit(or enter q to quit):"); } return 0; } void Temperat...
1,330,302
the-stack-v2-dedup
C
/* * TOPPERS/JSP Kernel * Toyohashi Open Platform for Embedded Real-Time Systems/ * Just Standard Profile Kernel * * Copyright (C) 2000-2004 by Embedded and Real-Time Systems Laboratory * Toyohashi Univ. of Technology, JAPAN * Copyright (C) 2001-2004 by Industrial Techn...
1,330,303
the-stack-v2-dedup
C
#include <stdint.h> /* Declarations of uint_32 and the like */ #include <stdbool.h> #include <pic32mx.h> /* Declarations of system-specific addresses etc */ #include "project.h" #define DISPLAY_VDD_PORT PORTF #define DISPLAY_VDD_MASK 0x40 #define DISPLAY_VBATT_PORT PORTF #define DISPLAY_VBATT_MASK 0x20 #define DISP...
1,330,304
the-stack-v2-dedup
C
#include <stdio.h> #include "subtraction.h" #include "multiplication.h" int main (void) { int a = 10; int b = -2; printf ("\nHere, we add, subtract and multiply....\n\n"); printf ("%d\t+\t%d\t=\t%d\n", a, b, cal_add(a,b)); printf ("%d\t-\t%d\t=\t%d\n", a, b, cal_subtract(a,b)); printf ("%d\t*\t%d\t=\t%d\...
1,330,305
the-stack-v2-dedup
C
/* audio player - Copyright (C) 2012~2016 HunterSun Technologies pingping.wu@huntersun.com.cn */ /** * @file lib/audio/dec/mp3.c * @brief source file. * @details * * @addtogroup decoder * @details * @{ */ #include "lib.h" #include "mp3common.h" #define MP3_READ...
1,330,306
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,330,307
the-stack-v2-dedup
C
//FIXME #pragma once #include "core.h" #include "prom.h" #include <stdbool.h> void prom_init_config()
1,330,308
the-stack-v2-dedup
C
../../../PAYFormBuilder/PAYFormBuilder/view/PAYTextLabel.h
1,330,309
the-stack-v2-dedup
C
/* ssh2pubkeyencode.c Authors: Tatu Ylonen <ylo@ssh.fi> Markku-Juhani Saarinen <mjos@ssh.fi> Timo J. Rinne <tri@ssh.fi> Sami Lehtinen <sjl@ssh.fi> Copyright (C) 1997-1998 SSH Communications Security Oy, Espoo, Finland All rights reserved. Encodes and decodes ssh2-format p...
1,330,310
the-stack-v2-dedup
C
const unsigned char Romanian_Str_0001[] = { 0x53, 0x65, 0x74, 0xA1, 0xC4, 0x72, 0x69, 0x20, 0x6D, 0x61, 0x6E, 0x75, 0x61, 0x6C, 0x65, 0x00}; const unsigned char Romanian_Str_0002[] = { 0x53, 0x63, 0x65, 0x6E, 0xA1, 0xC4, 0x00}; const unsigned char Romanian_Str_0003[] = { 0x41, 0x75, 0x74, 0x6F, 0x00}; const unsigned ch...
1,330,311
the-stack-v2-dedup
C
#ifndef _3DSTRUCT_H #define _3DSTRUCT_H #include "vector3d.h" #include "array.h" typedef struct { vec3 pt[3]; } triangle; typedef struct { vec3 pt[4]; } quad; typedef struct face3 { int indices[3]; } face3; typedef struct face4 { int indices[4]; } face4; #endif
1,330,312
the-stack-v2-dedup
C
#ifndef DEFLATE_H #define DEFLATE_H #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #define GetBit(reg, bit) ((reg) & (1 << (bit)) ? 1 : 0) #define SetBit(reg, bit) ((reg) |= (1<<(bit))) #define ClearBit(reg, bit) ((reg) &= (~(1<<(bit)))) #define BitIsSet(reg, bit) (((reg) & (1 << (bit))) != 0) #define...
1,330,313
the-stack-v2-dedup
C
#pragma once #include "core.h" #include "Game.h"
1,330,314
the-stack-v2-dedup
C
#include <stdio.h> int main() { int number, aux, first = 0, second = 1; printf("Digite um número: "); scanf("%d", &number); printf("%d ", first); printf("%d ", second); for (int i = 0; i < number - 2; i++) { aux = first + second; first = second; second = aux; ...
1,330,315
the-stack-v2-dedup
C
#include <pthread.h> #include <stdio.h> void *threadSafe(void *args) { int *threadId = (int *)args; printf("Hello from Thread: %d\n", *threadId); } int main() { int i, j; int NUM_THREADS = 10; pthread_t threads[NUM_THREADS]; for(i = 0; i < NUM_THREADS; i++) { pthread_create(&threads[i], NULL, thre...
1,330,316
the-stack-v2-dedup
C
// _PnpDeletePropertyWorker int __fastcall PnpDeletePropertyWorker(int *a1, int a2, int a3, int a4, int a5, int a6, int a7) { int v10; // r0 int v11; // r4 int v12; // r5 int v13; // [sp+4h] [bp-BCh] int v14; // [sp+38h] [bp-88h] BYREF char v15[8]; // [sp+40h] [bp-80h] BYREF unsigned __int16 v16[60]; /...
1,330,317
the-stack-v2-dedup
C
#ifndef PRBS_PACKET_GENERATOR_REGS_H #define PRBS_PACKET_GENERATOR_REGS_H #include "io.h" // prbs_packet_generator accessor macros #define PRBS_PACKET_GENERATOR_RD_CSR(base) IORD(base, 0) #define PRBS_PACKET_GENERATOR_WR_CSR(base, data) IOWR(base, 0, data) #define PRBS_PACKET_GENERATOR_C...
1,330,318
the-stack-v2-dedup
C
#include "ds/double_linked_list.h" void copy_value_to_node_char(DoubleLinkedListNode* node, void* value) { char* temp = (char*) node->buffer; *temp = *(char*) value; } void copy_value_to_node_unsigned_char(DoubleLinkedListNode* node, void* value) { unsigned char* temp = (unsigned char*) node->buffer; ...
1,330,319
the-stack-v2-dedup
C
#include <stdio.h> const char yo[] = "hi :)"; int main(int argc, char const *argv[]) { if (argc <= 5) { printf("%c", yo[argc-1]); return main(argc+1, argv); } else { printf("\n"); return 0; } }
1,330,320
the-stack-v2-dedup
C
/* * @lc app=leetcode id=239 lang=c * * [239] Sliding Window Maximum * * https://leetcode.com/problems/sliding-window-maximum/description/ * * algorithms * Hard (38.25%) * Total Accepted: 160.2K * Total Submissions: 418.8K * Testcase Example: '[1,3,-1,-3,5,3,6,7]\n3' * * Given an array nums, there is a...
1,330,321
the-stack-v2-dedup
C
/***************************************************** * @file main.c * * @author Alexandra Barka <barka@csd.uoc.gr> * * * * @brief Main Function for Data Structures (CS240b) * * Project: Spring 2016 * ****...
1,330,322
the-stack-v2-dedup
C
/* Copyright (C) 2016-2018 Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted for any purpose (including commercial purposes) * provided that the following conditions are met: * * 1. Redistributions of source code must ret...
1,330,323
the-stack-v2-dedup
C
/**************************************************************************/ /* */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ /* */ /* Thi...
1,330,324
the-stack-v2-dedup
C
PROTO_FUNC_DEF(switch_test) PROTO_FUNC_DEF(switch_add_luckystar_exchange_cnt) PROTO_FUNC_DEF(switch_broadcast_msg)
1,330,325
the-stack-v2-dedup
C
#ifndef TST_FUNCTIONS #define TST_FUNCTIONS #include <stdio.h> #include "functions.h" void test_functions(void); #endif
1,330,326
the-stack-v2-dedup
C
/** 9. Verificar si una pila DADA es capicúa. */ /** 4. Encontrar el menor elemento de una pila y guardarlo en otra. (sin variables, solo pilas) */ #include <stdio.h> #include <stdlib.h> #include <conio.h> #include "pila.h" #define ESC 27 int main() { Pila dada, aux, copiaInv, auxCopiaInv; inicpila(&dada); ...
1,330,327
the-stack-v2-dedup
C
#include <stdint.h> #include "logger.h" #include "wiegand.h" #include "can.h" extern TIM_HandleTypeDef htim3; uint8_t canpybara_wiegand_is_valid(void); static uint32_t canpybara_wiegand_strip_parity_bits(uint32_t input); uint32_t wiegand_position; uint32_t wiegand_buffer; uint32_t wiegand_timeout; void canpybara_w...
1,330,328
the-stack-v2-dedup
C
/* * Header for module for semantically checking an abstract syntax tree for * multafila, a language focusing on making multithreading easy and * intuitive. * * Alessandra Castro Poblador * Zeynep Toraman * Bo Yin * */ #ifndef SEM_CHECK_H #define SEM_CHECK_H int sem_check(ast*, symtab*); #...
1,330,329
the-stack-v2-dedup
C
#include "button.h" uint8_t button_is_pressed(uint8_t *button_history){ uint8_t pressed = 0; if ((*button_history & MASK) == 0b00000111U){ pressed = 1; *button_history = 0b11111111U; } return pressed; } uint8_t button_is_released(uint8_t *button_history){ uint8_t released = 0; ...
1,330,330
the-stack-v2-dedup
C
/****************************** File ********************************* Module: dim3 Engine Author: Brian Barnes Usage: Group Movements ***************************** License ******************************** This code can be freely used as long as these conditions are met: 1. This header, in its entirety, is kept wi...
1,330,331
the-stack-v2-dedup
C
/* * Ce code est une modification des tutoriaux OpenGL * Nehe [http://nehe.gamedev.net/] */ #include <stdio.h> #include <stdlib.h> #ifdef __APPLE__ #include <OpenGL/gl.h> #include <OpenGL/glu.h> #else #include <GL/gl.h> #include <GL/glu.h> #endif #include <SDL2/SDL.h> #include <math.h> #include <sys/time.h> #includ...
1,330,332
the-stack-v2-dedup
C
// Common hashing functions #include <stdint.h> #include <string.h> #include "hash_common.h" #include "common.h" void hash32_sum(const t_hash_fns *desc, const uint8_t *inbuffer, unsigned length, void *output) { uint32_t *state = (uint32_t*)output; uint64_t bitlen = length << 3; // Init state memcpy(state, desc-...
1,330,333
the-stack-v2-dedup
C
#include "crypto_scalarmult.h" #include "Curve25519.h" int crypto_scalarmult(uint8_t *mypublic, const uint8_t *secret, const uint8_t *basepoint) { Curve25519_crypto_scalarmult(mypublic, secret, basepoint); return 0; } static const unsigned char basepoint[32] = {9}; int crypto_scalarmult_base(unsigned char *q,con...
1,330,334
the-stack-v2-dedup
C
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <netpbm/pgm.h> int main(int argc, char *argv[]){ typedef unsigned int gray; gray maxval=0,**image_val,**new_image; int cols=0,rows=0; int num,num2; //変換の選択 FILE *infile; printf("%s\n",argv[1]); infile = fop...
1,330,335
the-stack-v2-dedup
C
#include <linux/linkage.h> #include <linux/moduleloader.h> #include <linux/fs.h> #include <linux/kernel.h> #include <linux/workqueue.h> #include <linux/slab.h> #include <linux/sched.h> #include <asm/uaccess.h> #include <linux/jiffies.h> #include <linux/types.h> #include <linux/crypto.h> #include <crypto/hash.h> #includ...
1,330,336
the-stack-v2-dedup
C
/******************************************************************************/ /* Change log * * * * * Date Revision Comments * MM/DD/YY * -------- --------- ---------------------------------------------------- * 01/18/16 13.0...
1,330,337
the-stack-v2-dedup
C
// Lean compiler output // Module: Lean.Data.Position // Imports: Init Lean.Data.Format Lean.ToExpr #include <lean/lean.h> #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" #pragma clang diagnostic ignored "-Wunused-label" #elif defined(__GNUC__) && !defined(__CLANG__) #pragma GCC diagnostic ...
1,330,338
the-stack-v2-dedup
C
/* * $Id: client.c 154 2011-03-13 05:36:42Z vintage $ */ #include <stdio.h> #include <atmi.h> #include <string.h> #include "student.h" int main(int argc, char *argv[]) { char *sendrcvbuf; long sendrcvlen; int ret = 0, i = 0; struct student* pStudent = NULL; if(argc != 2) { (void) fprintf(stderr, "Usage: clie...
1,330,339
the-stack-v2-dedup
C
/* * Copyright (C) 2013 - 2014 Canonical Ltd * * 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...
1,330,340
the-stack-v2-dedup
C
/* -Procedure zzadsave_c ( Save passed-in function pointer arguments ) -Abstract CSPICE Private routine intended solely for the support of CSPICE routines. Users should not call this routine directly due to the volatile nature of this routine. Save passed-in function pointer arguments to mak...
1,330,341
the-stack-v2-dedup
C
/* * Copyright (c) 2015 - 2019, Kurt Cancemi (kurt@x64architecture.com) * * Permission to use, copy, modify, and/or 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. * * THE SOFTWARE IS PRO...
1,330,342
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_memset.c :+: :+: :+: ...
1,330,343
the-stack-v2-dedup
C
cocci_test_suite() { u64 cocci_id/* arch/powerpc/kernel/rtas-proc.c 710 */; struct individual_sensor *cocci_id/* arch/powerpc/kernel/rtas-proc.c 694 */; const char *cocci_id/* arch/powerpc/kernel/rtas-proc.c 643 */; struct seq_file *cocci_id/* arch/powerpc/kernel/rtas-proc.c 643 */; void cocci_id/* arch/powerpc/ke...
1,330,344
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <arpa/inet.h> #include <sys/wait.h> #define SERVER_PORT "21887" #define MAXBUFFLEN 100 #define UDP_CLIENT 0 #define UDP_SE...
1,330,345
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,330,346
the-stack-v2-dedup
C
#include <stdlib.h> //exit #include <ctype.h> //isalnum #include <stdint.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <sys/mman.h> struct stat sb; uint8_t *p; void read_into_memory(char *fname) { int fd = open (fname, O_RDONLY); if ...
1,330,347
the-stack-v2-dedup
C
#include <stdio.h> #include <pthread.h> #include <sys/sem.h> #include <sys/types.h> int a=0,SemId; union semum{ short val; //供SETVAL使用 struct semid_ds* buf; //semid_ds结构 unsigned short* array; //SETALL所用数组值 struct seminfo *_buf; //为控制IPC_INFO提供缓存 }arg; void P(int semid,int index){ struct sembuf sem; sem.sem_num=...
1,330,348
the-stack-v2-dedup
C
#pragma once // ----- events ---------------------- #include "Engine/Events/Event.h" #include "Engine/Events/Action/OnCollisionEvent.h" #include "Engine/Events/Action/OnCollisionEvent.h" #include "Engine/Events/Mouse/MousePressed.h" #include "Engine/Events/Action/ObjectStopEvent.h" #include "Engine/Events/Action/Obje...
1,330,349
the-stack-v2-dedup
C
#include "server.h" void get_str(int sockfd ,char buff[]) { char c = '\0'; int i = 0,j = 0; while( c != '\n' ) { int len = recv(sockfd,&c,1,0); if( len > 0 ) { buff[i++] = c; } else { buff[i] = '\n'; }...
1,330,350
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* strnequ.c :+: :+: :+: ...
1,330,351
the-stack-v2-dedup
C
//// //// Renderer.h //// RoxigaEngine //// //// Created by 大西 武 on 2017/06/27. //// Copyright © 2017年 大西 武. All rights reserved. //// // //#import <MetalKit/MetalKit.h> //#import <simd/simd.h> //#import "RoxigaModel.h" // //@interface Renderer : NSObject <MTKViewDelegate> { //@protected // simd::float3 _eye; //...
1,330,352
the-stack-v2-dedup
C
version https://git-lfs.github.com/spec/v1 oid sha256:9d3df7af698b0067d4e492948253a5b185b0548c383118df2d525eb54f785e2d size 1778
1,330,353
the-stack-v2-dedup
C
version https://git-lfs.github.com/spec/v1 oid sha256:007ad7f6f91ef283adef48d8c22e5b3bb73b1c60bea2ffe62654d7c27aeb78de size 198
1,330,354
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strcat.c :+: :+: :+: ...
1,330,355
the-stack-v2-dedup
C
#pragma once enum { // here it is proper just no-argument updates INITIAL_UPDATE = 1'000'001, PRE_CLOSE_DOCUMENT_UPDATE, NEW_DOCUMENT_UPDATE, CLOSE_DOCUMENT_UPDATE, OPEN_DOCUMENT_UPDATE, SAVE_DOCUMENT_UPDATE, EVENT_ID, UPDATE_XXX, FULL_ID, DOCUMENT_ID, TOPIC_OK_ID, INITIALIZE_I...
1,330,356
the-stack-v2-dedup
C
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* error.c :+: :+: :+: ...
1,330,357
the-stack-v2-dedup
C
/****************************************************** *FILENAME: montecarlo.c *DES: * Generating value of Pi * Monte Carlo Technique, uses randomization * Multithreading version of algorithm * * Creates seperate thread to generate random (x,y) cordinates * -and count the cordinates that fall inside the radius of cir...
1,330,358
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,330,359
the-stack-v2-dedup
C
#pragma once extern void ReadJavaToken(const char* Token, char* OutMessage); extern void WriteJavaToken(const char* Token, const char* Message); extern void ReadJavaTokenAny(char* OutToken, char* OutMessage);
1,330,360
the-stack-v2-dedup
C
#include "lists.h" #include <stdlib.h> /** * pop_listint - deletes the head node of a linked list * @head: head of a given linked list * Return: returns the head nodes data. */ int pop_listint(listint_t **head) { int n_data; listint_t *tmp; if (!(*head)) { return (0); } tmp = *head; n_data = (*head)->n...
1,330,361
the-stack-v2-dedup
C
#ifndef OOP_UTIL_LIST_H_INCLUDED_ #define OOP_UTIL_LIST_H_INCLUDED_ #include "BStar.h" typedef void* List_ElementAddr; typedef struct List_Node *List_PtrToNode; struct List_Node { BStar_Object elemAddr; List_PtrToNode next; }; typedef List_PtrToNode List_Position; typedef struct List { int size; L...
1,330,362
the-stack-v2-dedup
C
/** * A task to do a comparison between tracklets and clusers in the SPD * * Since the class SPDComparisonTask derives from a compiled class * (AliAnalysisTaskSE) we need to compile that code. The script will, * when executed in the AliROOT prompt load it self again and byte * compile it with the preprocessor f...
1,330,363
the-stack-v2-dedup
C
#pragma once #include <Windows.h> #include <cstdarg> #define __FILENAME__ (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__) bool _trace(TCHAR *format, ...); bool _formatTrace(TCHAR *file, int line, TCHAR *func, TCHAR *format, ...); #define TRACE(format, ...) _formatTrace(__FILE__, __LINE__, __FUNCTI...
1,330,364
the-stack-v2-dedup
C
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> int mul( int num) { for (int i = 1; i < num; i++){ for (int j = 1; j <= i; j++){ printf("%d*%d", i, j, i*j); } printf("\n"); } return mul; } int main(){ int num; printf("ÇëÊäÈëÒ»¸öÊý×Ö\n"); scanf("%d",&num); mul(num); system("pause"); return 0; }
1,330,365
the-stack-v2-dedup
C
#include <u.h> #include <libc.h> #include <thread.h> #include <draw.h> #include <bio.h> #include "dat.h" #include "fns.h" extern Var cpuvars[], ppuvars[], memvars[], apuvars[], evvars[]; extern Event *events[NEVENT], *elist; static Biobuf *bp; Var apuvars[] = {{nil, 0, 0}}; static void putevents(void) { int i, j; E...
1,330,366
the-stack-v2-dedup
C
/* Here we learn about the realtion between array and pointer. -> arr[] ={1,2,3,4} (this is array of size 4 with same type of value) -> arr = &arr[0] --> This means arr is pointer which contains address of first element in array. --------------------------------------------------------------- ->...
1,330,367
the-stack-v2-dedup
C
#pragma once #include <stdint.h> #include <assert.h> #include <exception> #include "codegen/il2cpp-codegen.h" // System.Collections.ObjectModel.Collection`1<GCGame.Table.Tab_CopySceneScoreCalc> struct Collection_1_t10568; // System.Object struct Object_t; // GCGame.Table.Tab_CopySceneScoreCalc struct Tab_CopySceneSco...
1,330,368
the-stack-v2-dedup
C
/* * linux/arch/mips/jz4740/common/pm.c * * JZ4740 Power Management Routines * * Copyright (C) 2006 Ingenic Semiconductor Inc. * Author: <jlwei@ingenic.cn> * * This program is free software; you can distribute it and/or modify it * under the terms of the GNU General Public License (Version 2) as * publis...
1,330,369
the-stack-v2-dedup
C
/* * mem.c */ #include <stdlib.h> #include <stdio.h> #include <tbit.h> #include "tmem.h" //менеджер памяти long init_size_in_byte=tmem_init_size_in_byte_default; //размер блока при инициализации tmemblock * memblock=NULL; //указатель на первый блок памяти tmemblock * mb2del=NULL; //указатель на бл...
1,330,370
the-stack-v2-dedup
C
../../../ASHorizontalScrollViewForObjectiveC/Sources/ASHorizontalScrollView/ASHorizontalScrollView.h
1,330,371
the-stack-v2-dedup
C
#include<stdio.h> int main() { int t,n1,n2,n3,n4,n5,n6,b,i,expen,budgt,remain,extra; int m1,m2,m3,m4,m5,m6; scanf("%d",&t); //int ans[t]; for(i=0;i<t;i++) { expen=0,budgt=0,remain=0; scanf("%d %d %d %d %d %d",&n1,&n2,&n3,&n4,&n5,&n6); expen=n1+n2+n3+n4+n5+n6; scan...
1,330,372
the-stack-v2-dedup
C
/* $NetBSD$ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Taylor R. Campbell. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
1,330,373
the-stack-v2-dedup
C
#ifndef __KBD_H__ #define __KBD_H__ #define MAX_KEYS 0x100 #define KEY_LEFT 1 #define KEY_RIGHT 2 #include <minios/sem.h> struct kbd_s { char buffer[MAX_KEYS]; unsigned int pos; unsigned int end; sem_t data; }; /* interrupt handler */ void kbd_intr(); void kbd_init(struct kbd_s *k); void kbd_key(u...
1,330,374
the-stack-v2-dedup
C
/* ** my_strncmp.c for my_string in /home/johan/Documents/CPE/lemin/lib/my_string ** ** Made by johan ** Login <johan@epitech.net> ** ** Started on Mon Apr 10 13:03:49 2017 johan ** Last update Mon Apr 10 13:04:23 2017 johan */ int my_strncmp(char *s1, char *s2, int n) { int i; i = 0; while (s1[i] &&...
1,330,375
the-stack-v2-dedup
C
/************************************************************************************ If not stated otherwise in this file or this component's Licenses.txt file the following copyright and licenses apply: Copyright 2018 RDK Management Licensed under the Apache License, Version 2.0 (the "License"); you may n...
1,330,376
the-stack-v2-dedup
C
#ifndef __GLB_TP_OAM_DEFINE_H__ #define __GLB_TP_OAM_DEFINE_H__ #define GLB_TPOAM_UPLOAD_EVENT_SET 1 #define GLB_TPOAM_UPLOAD_EVENT_CLEAR 2 #define GLB_TPOAM_EXEC_SEND_LB_MSG_TIMER 50 /* the frame ration will be displayed as 50.0000% */ #define TPOAM_LM_FRAME_LOSS_RATIO_BITS 1000000ULL #def...
1,330,377
the-stack-v2-dedup
C
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <assert.h> #include <exception> // UnityEngine.Mesh struct Mesh_t383; // UnityEngine.Vector3[] struct Vector3U5BU5D_t168; // System.Collections.Generic.List`1<UnityEngine.Vec...
1,330,378
the-stack-v2-dedup
C
/* open an SSL connection and get the page */ /* basic flow according to the docs: SSL_library_init() - initialize the library SSL_CTX_new() - create CTX object - set cert options SSL_new - assigns netwok connection to an SSL object SSL_accept/SSL_connect - handshake ...
1,330,379
the-stack-v2-dedup
C
//Program to study : //pointer to a pointer //refer : Pointers.txt #include<stdio.h> int main() { int i; //a variable int *p; //a pointer int **q; //a pointer to a pointer i =10; //assignment p = &i; //referencing a variable q = &p; //referencing a pointer printf("\n i : %d ", i)...
1,330,380
the-stack-v2-dedup
C
#include <stdlib.h> #include "utills.h" #include "hash.h" #include "file_io.h" // produce the requried object file bool create_object_file(const char* file_name,int* mem,unsigned int inst_size, unsigned int data_size) { /*at this point the inst_memory has been expanded and the data image has been appended to the en...
1,330,381
the-stack-v2-dedup
C
#ifndef ARVORESBB_H #define ARVORESBB_H #include "aluno.h" #define SBB_VERTICAL 0 #define SBB_HORIZONTAL 1 #define TRUE 1 #define FALSE 0 typedef struct ArvoreSBB{ Aluno *reg; struct ArvoreSBB *esq; struct ArvoreSBB *dir; int esqtipo; int dirtipo; }ArvoreSBB; ArvoreSBB* criaArvoreSBB(Aluno *a); void ee(Arvor...
1,330,382
the-stack-v2-dedup
C
#include "tree.h" Met TMet = { iter_destroy, iter_begin, iter_end, iter_remove, iter_next, iter_get, iter_cmp };
1,330,383
the-stack-v2-dedup
C
/* * deque.c: Implementation of deque in C * * St: 2016-09-28 Wed 11:27 PM * Up: 2016-09-29 Thu 01:24 AM * * Author: SPS * * This file is copyright 2016 SPS. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Softwa...
1,330,384
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <locale.h> #include <time.h> #include <ctype.h> #include "TF.H" #include <math.h> int main(int argc, char *argv[]) //argc conta o número de parâmetros e argv armazena as strings correspondentes aos parâmentros digitados { setlocale(LC...
1,330,385
the-stack-v2-dedup
C
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class com_example_hatio_insidepositioning_Odometer */ #ifndef _Included_com_example_hatio_insidepositioning_Odometer #define _Included_com_example_hatio_insidepositioning_Odometer #ifdef __cplusplus extern "C" { #endif #undef com_exam...
1,330,386
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include "lista.h" /* ****************************************************************** * Profesor: Maximiliano Curia * -Integrantes del grupo: -Padron: * Vázquez Matías..........................91523 * ********************************************...
1,330,387
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int potencia(int variable); void potencia_void(int variable); void invertir(int a, int b); void ordenar(int a, int b); int main(int argc, char *argv[]) { int var=...
1,330,388
the-stack-v2-dedup
C
#include "cixl/cx.h" #include "cixl/error.h" #include "cixl/malloc.h" #include "cixl/ref.h" struct cx_ref *cx_ref_new(struct cx *cx, struct cx_box *value) { struct cx_ref *ref = cx_malloc(&cx->ref_alloc); if (value) { cx_copy(&ref->value, value); } ref->nrefs = 1; return ref; } struct cx_ref *cx_ref_inc(struc...
1,330,389
the-stack-v2-dedup
C
#ifndef __CART_H_ #define __CART_H_ #include <stdio.h> #include <stddef.h> #include <stdint.h> struct cart_hdr { uint8_t entry_point[4]; //0x0100-0x0103 uint8_t logo[0x30]; //0x0104-0x0133 uint8_t title[0x10]; //0x0134-0x0143 //uint8_t manufacturer[0x4]; //0x013f-0x0142 //uint8_t CGB; //0x0143 ...
1,330,390
the-stack-v2-dedup
C
inherit NPC; string *names = ({ "青蛇", "蜈蚣", "蝎子", "蜘蛛", "蟾蜍", }); string *ids = ({ "she", "wugong", "xie", "zhizhu", "hama", }); void create() { int ii; ii=random(sizeof(names)); set_name(names[ii], ({ids[ii]})); set("race", "野兽"); set("age", 10); set_skill("dodge", 10); set("comb...
1,330,391
the-stack-v2-dedup
C
#include<stdio.h> #include "holberton.h" /** * times_table - prints the 9 times table starting with 0 * * Return: nothing */ void times_table(void) { int i, j, m, k, l; for (i = 0; i <= 9 ; i++) { for (j = 0; j <= 9 ; j++) { m = i * j; if (m >= 10) { k = m / 10; l = m % 10; _putchar('0' + k); _putchar('0' + l); } e...
1,330,392
the-stack-v2-dedup
C
../NSIndexSet+RACSequenceAdditions.h
1,330,393
the-stack-v2-dedup
C
#include "glutInitialisers.h" void singleSide(float xWidth) { float miniSquares = 5; for(float z = -zLength/2; z < zLength/2; z += zLength/miniSquares) { for(float x = -xWidth/2; x < xWidth/2; x += xWidth/miniSquares) { glBegin(GL_QUADS); glNormal3f(0.0, 1.0, 0.0); glVertex3f(x, 0, z); glVertex3f(x ...
1,330,394
the-stack-v2-dedup
C
#include <stdio.h> #include <curses.h> #include "spielfeld.h" #include "sitzung.h" void begin_game( void ) { // Curses initialisieren und einrichten initscr(); cbreak(); noecho(); keypad(stdscr, TRUE); } void end_game( void ) { // Curses beenden. endwin(); } void eingabe_schleife (struct ...
1,330,395
the-stack-v2-dedup
C
#include <stdio.h> #include <stdlib.h> #include "Tree.h" void mirror(TreeNode **t) { TreeNode* aux; if(*t == NULL) { return; } else { mirror(&((*t)->r)); mirror(&((*t)->l)); aux = (*t)->l; (*t)->l = (*t)->r; (*t)->r = aux; } } int sameTree(TreeNode *t1,...
1,330,396
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,330,397
the-stack-v2-dedup
C
#pragma once #include "localization_loop.h" #include "msg_defs.h" // write message helpers void write_location_match_msg(LocationMatchMsg* msg, const ScaleMatch* match); void write_odometry_msg(OdometryMsg* msg, const VisualOdometry* odom); void write_correlation_msg(CorrelationMsg* msg, const Correlation* corr); void...
1,330,398
the-stack-v2-dedup
C
/** * \author Mateusz Jemielity matthew.jemielity@gmail.com * \brief Tests ionize_mutex. * \date 04/03/2015 06:12:46 PM * \file test_mutex_01.c * \version 1.0 * * Uses pthreads. **/ #include <assert.h> #include <ionize/mutex.h> #include <ionize/universal.h> #include <pthread.h> #in...
1,330,399