source string | code_lang string | content string | idx int64 |
|---|---|---|---|
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line_bonus.c :+: :+: :+: ... | 1,327,900 |
the-stack-v2-dedup | C | /***********************************************************
*文件名 : scene_list.h
*版 本 : v1.0.0.0
*日 期 : 2018.07.04
*说 明 : 本地化场景接口
*
*修改记录:
************************************************************/
#ifndef SCENE_LIST_H
#define SCENE_LIST_H
#include "link_list.h"
#include "condition_list.... | 1,327,901 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include "LiquidCrystal.h"
# define _XTAL_FREQ 1000000
int main()
{
// ALL ANx input are digital
ADCON1 = 0x0f;
// Data pins connected to PORTA
TRISA = 0x00;
// RS = RD0
// RW = RD1
// E = RD2
... | 1,327,902 |
the-stack-v2-dedup | C | #include "positioncontrol.h"
#include "currentcontrol.h"
#include "encoder.h"
#include "NU32.h"
#include <stdio.h>
#include "utilities.h"
/*Contains function prototypes related to position control mode of the controller.
*/
void readpositiongain(void){
NU32_ReadUART3(buffer,BUF_SIZE);
sscanf(buffer, "%f %f %f",... | 1,327,903 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
/* define the structure of a link list */
/* starting with an element follow by a pointer */
typedef struct node
{
int value;
struct node *next;
} linkNode;
typedef struct _linkList
{
linkNode * node;
int size;
} linkList;
void printLis... | 1,327,904 |
the-stack-v2-dedup | C | #include <ansi.h>
inherit NPC;
inherit F_MASTER;
string ask_for_join();
void create()
{
set_name("文虚师太", ({
"wenxu shitai",
"wenxu",
"shitai",
}));
set("long",
"她是一位年轻的师太。\n"
);
set("gender", "女性");
set("atti... | 1,327,905 |
the-stack-v2-dedup | C | #include <stdio.h>
int main(void)
{
int pno, no;
printf("请输入一个正整数:");
scanf("%d", &pno);
no = pno;
printf("您输入的整数为%d,该整数的逆向显示的结果是", pno);
while (no > 0) {
printf("%d", no % 10);
no /= 10;
}
putchar('\n');
return 0;
}
| 1,327,906 |
the-stack-v2-dedup | C | /*
* utils.c
*
* Created on: 02.09.2019
* Author: DI Andreas Auer
*/
#include "utils.h"
#include <ctype.h>
#include <string.h>
static const char HEX[16] = "0123456789ABCDEF";
//------------------------------------------------------------------------------
char *rstrstr(const char *haystack, const char *n... | 1,327,907 |
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,327,908 |
the-stack-v2-dedup | C | #pragma once
void Menu();
void handleToggles();
void DrawMenuItem(char * text, int position);
void AddMenuItem(char * text, bool toggle, void(*function)(), int position);
void MenuInit(char * text, bool toggle, void(*function)(), int position); | 1,327,909 |
the-stack-v2-dedup | C | #define MAGEPATH "/players/feldegast/mages/"
#include "/players/feldegast/defines.h"
inherit "/players/wocket/mages/obj/page.c";
reset(arg) {
if(arg) return;
spell="enchant armor";
spell_short=HIB+"Enchant Armor"+NORM;
spell_desc=
" This is a relatively simple spell that prepares an armor for\n\
further ench... | 1,327,910 |
the-stack-v2-dedup | C | #ifndef CHECK_ROUTE_H
#define CHECK_ROUTE_H
#include "vpr_types.h"
void check_route(enum e_route_type route_type, int num_switch,
t_ivec** clb_opins_used_locally);
#endif
| 1,327,911 |
the-stack-v2-dedup | C | //
// LTUIMacro.h
// LinkTree
//
// Created by lizhan on 2018/4/8.
// Copyright © 2018年 lizhan. All rights reserved.
//
#ifndef LTUIMacro_h
#define LTUIMacro_h
// 是否Retina
#define IS_RETINASCREEN ([[UIScreen mainScreen] scale] >= 2.0)
// 是否放大模式(iPhone 6及以上的设备支持放大模式)
#define IS_ZOOMEDMODE ([[UIScreen mainScreen] ... | 1,327,912 |
the-stack-v2-dedup | C | #include "./path.h"
inherit KHA_ROOM;
create()
{
::create();
SetIntShort("el pasillo de las celdas");
SetIntLong("En medio del pasillo, donde debería haber una puerta, no la hay.\nComparado "
"con el resto del corredor esta parte parece desierta.\n");
SetIndoors(1);
SetIntBright(10);
Se... | 1,327,913 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<stdlib.h>
struct node{
int data;
struct node *leftchild;
struct node *rightchild;
};
typedef struct node NODE;
NODE *newnode,*root=NULL;
NODE *getnode(int value){
newnode=(NODE *)malloc(sizeof(NODE));
newnode->data=value;
newnode->leftchild=NULL;
newnode->rightchild=NULL;
}
NODE... | 1,327,914 |
the-stack-v2-dedup | C | /*
* $Id: stdlib_setenv.c,v 1.12 2006-09-25 14:12:15 obarthel Exp $
*
* :ts=4
*
* Portable ISO 'C' (1994) runtime library for the Amiga computer
* Copyright (c) 2002-2015 by Olaf Barthel <obarthel (at) gmx.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* mod... | 1,327,915 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void compute(int n);
int main(void)
{
int n;
int i;
for (i = 0; i < 5; i++) {
scanf("%d", &n);
compute(n);
}
return 0;
}
/* DO NOT MODIFY THIS FUNCTION! */
void compute(int n)
{
int x = 1 + n % 3;
printf("compute(%d)\n", n);
sleep(n);
}
| 1,327,916 |
the-stack-v2-dedup | C | #include <stdio.h>
void set_mode(int *_mode, int mode);
void get_info(int *_mode, int *_distance, double *_fuel);
void show_info(int *_mode, int *_distance, double *_fuel); | 1,327,917 |
the-stack-v2-dedup | C | #include "Sort_Algorithms.h"
#include "../Data_Structures/inc/Vector.h"
#include <limits.h>
#include <stdlib.h>
#define FALSE 0
#define TRUE 1
#define DEC_DIGIT_NUM 10
static Vector** CreateVectorArray(size_t _numOfItems)
{
size_t index = 0;
Vector** vecArray;
if(!(vecArray = malloc(DEC_DIGIT_NUM *sizeof(Vector... | 1,327,918 |
the-stack-v2-dedup | C | //******************************************************************************
// MSP430x26x Demo - Basic Clock, Output Buffered SMCLK, ACLK and MCLK/10
//
// Description: Buffer ACLK on P5.6, SMCLK(DCO) on P5.5, MCLK on P5.4 and
// MCLK/10 on P5.3.
// ACLK = LFXT1 = 32768Hz, MCLK = SMCLK = CALxxx_8MHZ = 8M... | 1,327,919 |
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,327,920 |
the-stack-v2-dedup | C | union techno
{
int id;
char* nm;
}tch;
int main()
{
tch.id = 1;
tch.nm = "Vikash Joshi";
return 0;
}
| 1,327,921 |
the-stack-v2-dedup | C | /*
Source: main.c
- Contains functions for performing the relaxation technique
- Separate functions for sequential and parallel implementations
My implementation of the relaxation technique:
- For each element in the working array, calculate the average of its four neighbours
- Store the result of the averaging... | 1,327,922 |
the-stack-v2-dedup | C | /*-
* Copyright (c) 2012-2013 Bjoern A. Zeeb
* All rights reserved.
*
* This software was developed by SRI International and the University of
* Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-11-C-0249
* ("MRC2"), as part of the DARPA MRC research programme.
*
* @BERI_LICENSE_HEADER_START@
*
*... | 1,327,923 |
the-stack-v2-dedup | C | #ifndef _MINOS_TYPES_H_
#define _MINOS_TYPES_H_
#include <asm/asm_types.h>
#include <asm/barrier.h>
#include <minos/compiler.h>
#include <config/config.h>
typedef __u32 u32;
typedef __s32 s32;
typedef __u16 u16;
typedef __s16 s16;
typedef __u8 u8;
typedef __s8 s8;
typedef __u64 u64;
typedef __s64 s64;
typedef __u32 ... | 1,327,924 |
the-stack-v2-dedup | C | #include <stdio.h>
int main(void) {
int x = 1;
while(x < 10) {
printf("%i\n", x);
x = x+2;
}
return 0;
}
| 1,327,925 |
the-stack-v2-dedup | C | #ifndef MCD_H
#define MCD_H
int mcd (int a, int b);
#endif
| 1,327,926 |
the-stack-v2-dedup | C | /* The utf8_check() function scans the '\0'-terminated string starting at s. It
* returns a pointer to the first byte of the first malformed or overlong UTF-8
* sequence found, or a pointer to the terminating '\0' if the string contains
* only correct UTF-8. It also spots UTF-8 sequences that could cause trouble if
... | 1,327,927 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
int main()
{
int numero[]= {1,5,10};
int flag =0;
int num;
printf ("Ingrese un numero");
scanf ("%d\n",&num);
for(int i=0;i<3;i++)
{
if (numero[i]==num)
{
printf ("el numero ingresado se encuentra en el vecto... | 1,327,928 |
the-stack-v2-dedup | C | #ifndef __MSG__
#define __MSG__
struct _msg
{
int from;
int to;
char msg[1025];
};
typedef struct _msg msg_node;
int send_message(int from, int to, const char *msg);
msg_node recv_message(int from, int to);
#endif
| 1,327,929 |
the-stack-v2-dedup | C | #include "lists.h"
/**
* free_listint - frees up a linked list
* @head: head
* Return: returns none
**/
void free_listint(listint_t *head)
{
listint_t *fre3;
while (head != NULL)
{
fre3 = head;
head = head->next;
free(fre3);
}
}
| 1,327,930 |
the-stack-v2-dedup | C | ../../../../ReactComponents/node_modules/react-native/Libraries/Network/RCTNetworkTask.h | 1,327,931 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* reset_view.c :+: :+: :+: ... | 1,327,932 |
the-stack-v2-dedup | C | /**************************************************************************
*
* Copyright 2008-2018 by Andrey Butok. FNET Community.
*
***************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in c... | 1,327,933 |
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,327,934 |
the-stack-v2-dedup | C | /*
* jmemmgr.c
*
* Copyright (C) 1991-1997, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains the JPEG system-independent memory management
* routines. This code is usable across a wid... | 1,327,935 |
the-stack-v2-dedup | C | #include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_opengl.h"
/*---------
Vector 2D
---------*/
typedef struct{ // Estructura que define un vector en 2 dimensiones.
float x,y; // Componentes x e y del vector.
}VECT;
/*----... | 1,327,936 |
the-stack-v2-dedup | C | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_example_useopencvwithndk_build_MainActivity */
#ifndef _Included_com_example_useopencvwithndk_build_MainActivity
#define _Included_com_example_useopencvwithndk_build_MainActivity
#ifdef __cplusplus
extern "C" {
#endif
#undef... | 1,327,937 |
the-stack-v2-dedup | C | void main() {
__asm__("cmovaq -4(%rbp), %rbx");
} | 1,327,938 |
the-stack-v2-dedup | C | void welcome(const char * name);
void goodbye(const char * name); | 1,327,939 |
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>
// ExitGames.Client.Photon.SerializeMethod
struct SerializeMethod_t944;
// System.Object
struct Object_t;
// System.Byte[]
struct ByteU5BU5D_t... | 1,327,940 |
the-stack-v2-dedup | C | #include "IshikaStdInc.h"
#include "Stroke.h"
#include "Splat.h"
| 1,327,941 |
the-stack-v2-dedup | C | ../../../MHUIKIT/Classes/MHUiKit.h | 1,327,942 |
the-stack-v2-dedup | C | /****************************************************************************
* $Id:: gpio.h 6172 2011-01-13 18:22:51Z usb00423 $
* Project: NXP LPC13Uxx software example
*
* Description:
* This file contains definition and prototype for GPIO.
*
***************************... | 1,327,943 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
static char* target;
static char* depfile;
static char line[512]={0};
/*
* fixdep-pre depfile target
*/
int
main(int argc,char* argv[])
{
FILE* fd=NULL;
char* m=NULL;
char* end=NULL;
int len=0;
if(argc!=3){
printf("Incorrect usage of fixdep-pre!\n")... | 1,327,944 |
the-stack-v2-dedup | C | /*
* Copyright © 2018 Benjamin Otte
*
* 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 License, or (at your option) any later version.
*
* This library ... | 1,327,945 |
the-stack-v2-dedup | C | /*
* common.c
* Helper functions
* by William Moy
*/
#include "common.h"
// Fill in common functions here
| 1,327,946 |
the-stack-v2-dedup | C | /* clongint.h v0.01 11/27/2010
* ALL RIGHTS RESERVED. RYUTA MIZUTANI.
*/
#define LI_NCHAR 50
struct CLongInt {
int nElem;
unsigned char pElem[LI_NCHAR];
};
void LongIntSub(struct CLongInt* pa, struct CLongInt* pb);//*pa -= *pb
void LongIntMul(struct CLongInt* pa, struct CLongInt* pb);//*pa *= *pb
void LongIntCo... | 1,327,947 |
the-stack-v2-dedup | C | /*
* extraction.h
*
* Created on: Oct 3, 2017
* Author: ferdinandvonhagen
*/
#ifndef EXTRACTION_EXTRACTION_H_
#define EXTRACTION_EXTRACTION_H_
#include <stdbool.h>
typedef struct
{
int x;
int y;
bool max;
} point;
int smoothecg(int ecg0d, int ecg1d);
int smoothgsr(int gsrd);
bool gsrdetection... | 1,327,948 |
the-stack-v2-dedup | C | #define RED "\033[0;31m"
#define GREEN "\033[0;32m"
#define YELLOW "\033[0;33m"
#define BLUE "\033[0;34m"
#define MAGENTA "\033[0;35m"
#define CYAN "\033[0;36m"
#define RESET "\033[0m" | 1,327,949 |
the-stack-v2-dedup | C | //
// oc_events.h
//
// OpenCreators Firmware events definition
//
// 2015. 3. 4.
// Created by James Kang
// Copyright (c) 2014-2015 OpenCreators, Inc. All rights reserved.
//
#ifndef __OC_EVENTS_H__
#define __OC_EVENTS_H__
// event types
#define EVENT_KNOB_CCW 4
#define EVENT_KNOB_CW 5
#define EVE... | 1,327,950 |
the-stack-v2-dedup | C |
#define DCTSIZE2 64 /* DCTSIZE squared; # of elements in a block */
#define DCTSIZE 8 /* The basic DCT block is 8x8 coefficients */
#ifdef __cplusplus
extern "C"
#endif
const int jpeg_natural_order[DCTSIZE2 + 16]; // in libjpeg
#define DEQUANTIZE(coef,quantval) ((coef) * (quantval))
#define CONST_BITS 13
#d... | 1,327,951 |
the-stack-v2-dedup | C | //#include <stdio.h>
//#include <string.h>
char strA[] = "A string to be used for demonstration purposes";
char strB[strlen(strA)];
int main(void){
char *pA;
char *pB;
puts(strA); //int puts(const char *s), Funkcja wysyła na standardowe wyjście napis s, a następnie znak nowej linii.;
pA = strA; //point ... | 1,327,952 |
the-stack-v2-dedup | C | /*
* gt9147.h
*
* Created on: 2021. 4. 29.
* Author: baram
*/
#ifndef SRC_COMMON_HW_INCLUDE_TOUCH_GT9147_H_
#define SRC_COMMON_HW_INCLUDE_TOUCH_GT9147_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "hw_def.h"
#ifdef _USE_HW_GT9147
#include "touch.h"
bool gt9147InitDriver(touch_driver_t *p_driver... | 1,327,953 |
the-stack-v2-dedup | C | #ifndef _parser_h_
#define _parser_h
void parser_parse_all();
#endif // _parser_h_
| 1,327,954 |
the-stack-v2-dedup | C | /**
* Copyright (c) 2013 - 2018, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,... | 1,327,955 |
the-stack-v2-dedup | C | /*
* main.c
*
* Created on: Jun 3, 2015
* Author: skynet
*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char*argv[])
{
FILE *in=0;
int optiune='l';
int c;
if (argc<=1)
{
fprintf(stderr, "Linie de comanda incorecta. Prea putine argumente.\n");
fprintf(stderr, "Forma corecta este: %s [-l... | 1,327,956 |
the-stack-v2-dedup | C | #ifndef LOG_INST_H
#define LOG_INST_H
#include "common_defs.h"
#include "file.h"
#include "log_level.h"
#include <pthread.h>
typedef enum {
BUFF_TYPE_NONE = 0,
BUFF_TYPE_RING,
BUFF_TYPE_LIST,
BUFF_TYPE_MAX = BUFF_TYPE_LIST
} buffer_type_t;
/*
* log decorator callback
* must use malloc/calloc for allocation ... | 1,327,957 |
the-stack-v2-dedup | C | #ifndef _SXEPROTBUF_H
#define _SXEPROTBUF_H
#include "protobuf-c/protobuf-c.h"
/**********************************************************************************************************/
/* SXE Unknown1 */
/********************... | 1,327,958 |
the-stack-v2-dedup | C | #include <avr/io.h>
#include <avr/wdt.h>
#include <avr/interrupt.h>
#include "util.h"
#include "leds.h"
byte buttonPressed() {
return !(BUTTON_PORT_INPUT & _BV(BUTTON_BIT));
}
void initButton() {
BUTTON_PORT_DDR &=~ _BV(BUTTON_BIT);
BUTTON_PORT_OUTPUT |= _BV(BUTTON_BIT);//pullup for button
}
void initSensorTime... | 1,327,959 |
the-stack-v2-dedup | C | //
// DeleteReversalEnum.h
// PedSDKiOSLib
//
// Created by Nelson João on 29/01/2018.
// Copyright © 2018 SIBS. All rights reserved.
//
#ifndef DeleteReversalEnum_h
#define DeleteReversalEnum_h
typedef NS_ENUM(NSInteger, DELETE_REVERSAL_ENUM) {
DELETE_REVERSAL_ENUM_OK,
DELETE_REVERSAL_ENUM_NOK
};
#endif... | 1,327,960 |
the-stack-v2-dedup | C | //Abdullahi Elmi
//260727124
int myinit(FILE *fp);
int scheduler();
| 1,327,961 |
the-stack-v2-dedup | C | /* rngLib.h - ring buffer subroutine library header */
/* Copyright 1984-1992 Wind River Systems, Inc. */
/*
modification history
--------------------
02b,22sep92,rrr added support for c++
02a,04jul92,jcf cleaned up.
01k,26may92,rrr the tree shuffle
01j,04oct91,rrr passed through the ansification filter
-chan... | 1,327,962 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
void redirect_stdout(const char *file_name, int append);
void recover_stdout();
typedef struct _context_t
{
int original_fd;
int fd;
int redirect_flag;
}Context;
static Context ctx = {-1, -1, 0};
void redirect... | 1,327,963 |
the-stack-v2-dedup | C | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2014-2021 Broadcom
* All rights reserved.
*/
#include <string.h>
#include "tf_util.h"
const char *
tf_dir_2_str(enum tf_dir dir)
{
switch (dir) {
case TF_DIR_RX:
return "RX";
case TF_DIR_TX:
return "TX";
default:
return "Invalid direction";
}
}
c... | 1,327,964 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
/*
Faça um algoritmo que lê dois valores inteiros e mostre o resultado trocado
desses valores.
EX.: A=10 mostre A=5
B=5 mostre B=10
*/
int A,B;
void main(void)
{
printf("valor A: ");
scanf("%d",&A);
printf("Valor B: ");
sca... | 1,327,965 |
the-stack-v2-dedup | C | /* Monster using V file - Bob.c*/
#include <ansi.h>
inherit "/obj/monster2";
reset(arg) {
::reset(arg);
if(!arg) {
/*
object ob,ob2,ob3;
ob = clone_object("/players/wren/Area/ .c");
move_object(ob,this_object());
command("wield obj",this_object());
ob2 = clone_object("/playe... | 1,327,966 |
the-stack-v2-dedup | C | //Cracked by Roath
//sanhua-juding.c 三花聚顶掌
// sdong 07/98
#include <ansi.h>
inherit SKILL;
mapping *action = ({
([ "action" : "$N一式「燕抬腮」,右拳斜引,左掌疾出,砰的一响,打向$n腮部",
"force" : 145,
"dodge" : 5,
"parry" : 15,
"damage_type" : "瘀伤",
"lvl" : 0,
"skill_name" : "燕抬腮"
]),
([ "action" : "$N左掌虚抬,侧身转向,右掌斜穿而出,使出「猿献果」疾切$... | 1,327,967 |
the-stack-v2-dedup | C | #ifndef fila
#define fila
#include "lista.h"
typedef struct no{
Cidade *conteudo;
struct no *dir, *esq;
int fator;
int balanceamento;
}TNo;
typedef struct elo{
TNo *no;
int nivel;
struct elo *prox;
}Elo;
typedef struct fila{
Elo *primeiro;
Elo *ultimo;
int tamanho;
}Fila;
Fil... | 1,327,968 |
the-stack-v2-dedup | C | /*
** sfx.c
**
*/
#include <stdlib.h>
#include "fmod.h"
#include "sfx.h"
#define SFX_FADEIN 0;
#define SFX_FADEOUT 1;
FSOUND_STREAM * stream_handle;
FSOUND_STREAM * stream2_handle;
FSOUND_SAMPLE * sample_boom1;
FSOUND_SAMPLE * sample_boom2;
FSOUND_SAMPLE * sample_power_up;
FSOUND_SAMPLE * sample_po... | 1,327,969 |
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,327,970 |
the-stack-v2-dedup | C | /* 1097: [기초-2차원배열] 바둑알 십자 뒤집기
- 문제: 부모님을 기다리던 영일이는 검정/흰 색 바둑알을 바둑판에 꽉 채워 깔아 놓고 놀다가...
"십(+)자 뒤집기를 해볼까?"하고 생각했다.
바둑판(19 * 19)에 흰 돌(1) 또는 검정 돌(0)이 모두 꽉 채워져 놓여있을 때,
n개의 좌표를 입력받아 십(+)자 뒤집기한 결과를 출력하는 프로그램을 작성해보자.
- 입력: 바둑알이 깔려 있는 상황이 19 * 19 크기의 정수값으로 입력된다.
십자 뒤집기 횟수(n)가 입력된다.
... | 1,327,971 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line_bonus.c :+: :+: :+: ... | 1,327,972 |
the-stack-v2-dedup | C | #ifndef __USART_H
#define __USART_H
#include "stm32f10x.h"
#define RCC_USART1_CLK RCC_APB2Periph_USART1
#define RCC_USART1_Tx_CLK RCC_APB2Periph_GPIOA
#define RCC_USART1_Rx_CLK RCC_APB2Periph_GPIOA
#define USART1_Tx_Pin GPIO_Pin_9
#define USART1_Tx_Port GPIOA
#define USART1_Rx_Pin GPIO_Pi... | 1,327,973 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
int main() {
int READ = 0;
int WRITE = 1;
int f;
int fds[2];
pipe( fds );
f = fork();
if ( f == 0 ) {
close( fds[READ] );
char s[10] = "bonjour!";
sleep( 2 );
write( fds[WRITE], s, sizeof(s) );
}
else {
close( fds[WRIT... | 1,327,974 |
the-stack-v2-dedup | C | // c_mode.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int main(int argc, char* argv[])
{
const int n1 = 1;
const int n2 = 2;
const int n3 = 3;
char szBuf[n1+n2+n3] = {0};
return 0;
}
/*
error C2057: expected constant expression
error C2466: cannot allocate an array of ... | 1,327,975 |
the-stack-v2-dedup | C | #include"holberton.h"
/**
* reverse_array - function that reverses an array of integers
* @a: pointer
* @n: number of elements
*/
void reverse_array(int *a, int n)
{
int i, j, m;
if (n % 2 != 0)
j = n + 1;
else
j = n;
for (i = 0; i < j / 2; i++)
{
m = a[i];
a[i] = a[n - 1 - i];
a[n - 1 - i] = m;
}
}
| 1,327,976 |
the-stack-v2-dedup | C | /*
AUTHOR NOTES
==================
MUST DEFINE MAX_PTR_LENGTH AS 20 --> clear if longer
*/
/***************************** Include Files *********************************/
#include "xaxidma.h"
#include "xparameters.h"
#include "xdebug.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#inclu... | 1,327,977 |
the-stack-v2-dedup | C | #include "global.h"
#include "alloc.h"
#include "decompress.h"
#include "ereader_helpers.h"
#include "link.h"
#include "main.h"
#include "union_room.h"
#include "save.h"
#include "sprite.h"
#include "task.h"
#include "util.h"
struct Unknown030012C8
{
u8 unk0[8];
u32 *unk8;
int unkC;
int unk10;
int ... | 1,327,978 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <signal.h>
/*
Игнорируем сигналы SIGINT и SIGFPE.
При выполнении деления на 0 сигнал SIGFPE будет обработан по умолчанию.
При посылке SIGFPE из другого процесса он будет проигнорирован.
*/
int main()
{
int a, b;
signal(SIGINT, SIG_IGN);
signal(SIGFPE, SIG_IGN);
while (scanf... | 1,327,979 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_str_is_numeric.c :+: :+: :+: ... | 1,327,980 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "slack.h"
#include "slack-internal.h"
#include "orka-utils.h"
static void
rtm_connect_from_json(char str[], size_t len, void *p_url)
{
bool status = false;
json_extract(str, len,
"(ok):b"
"(url):s",
&status,
(char*)p_url);
}
... | 1,327,981 |
the-stack-v2-dedup | C | /* This file has been automtically generated by generate_chardata.py. DO NOT EDIT. */
/* [4.1] U+002E FULL STOP / U+0358 COMBINING DOT ABOVE RIGHT */
TEST("\x2e\xCD\x98",
if (_t3_term_encoding == _T3_TERM_UTF8 && column == 1 && _t3_term_combining == T3_UNICODE_40)
_t3_term_combining = T3_UNICODE... | 1,327,982 |
the-stack-v2-dedup | C | /***************************************************************************************
* The MIT License (MIT)
* Copyright (C) 2005 JinHui Han, <Email: ferrethan485@sohu.com, QQ: 1901589440>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated... | 1,327,983 |
the-stack-v2-dedup | C | #ifndef SYSTEMS_H
#define SYSTEMS_H
#include "systems/movesystem.h"
#endif // SYSTEMS_H
| 1,327,984 |
the-stack-v2-dedup | C | /*!
\file main.c
\brief gérer tout
\author Mohamed Ramadane, My-Hanh Dang, Ziyu Zhu
\date 22 mai 2016
*/
#include <stdlib.h>
#include <stdio.h>
#include "modele.h"
#include "constantes.h"
#include "reflecteur.h"
#include "utilitaire.h"
#include "absorbeur.h"
//void ligneBlue(float x, float y, float d, float a);... | 1,327,985 |
the-stack-v2-dedup | C | void Frog_Free(FrogObject *v);
FrogObject *Frog_ToString(FrogObject *a);
FrogObject *Frog_Len(FrogObject *a);
int Frog_Print(FrogObject *a, FILE *out);
long Frog_Hash(FrogObject *a);
FrogObject *FrogCall_In(FrogObject *a, FrogObject *b);
FrogObject *FrogCall_BAnd(FrogObject *a, FrogObject *b);
FrogObject *FrogCa... | 1,327,986 |
the-stack-v2-dedup | C | #include <stdio.h>
int cube[102][102];
const int r_way[4] = {0,0,1,-1};
const int c_way[4] = {1,-1,0,0};
int main(){
int r_len,c_len,r,c,k,r_next,c_next;
int ans = 0;
scanf("%d %d",&r_len,&c_len);
ans += 2*(r_len*c_len);
for(r=1;r<=r_len;r++){
for(c=1;c<=c_len;c++){
scanf("%d"... | 1,327,987 |
the-stack-v2-dedup | C | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/common/hash_table.h>
#include <aws/common/private/hash_table_impl.h>
#include <proof_helpers/make_common_data_structures.h>
#include <proof_helpers/proof_allocators.h>
#include <proof_hel... | 1,327,988 |
the-stack-v2-dedup | C | SDL_TLSData *
SDL_SYS_GetTLSData()
int
SDL_SYS_SetTLSData(SDL_TLSData *data)
| 1,327,989 |
the-stack-v2-dedup | C | /*
** EPITECH PROJECT, 2020
** Pointeur
** File description:
** Pointeur for myprintf
*/
#include "../../include/lib.h"
void pointer(int nb)
{
if (nb == 0)
my_putstr("(nil)");
else {
my_putstr("0x");
hexadecimal_lower(nb);
}
}
| 1,327,990 |
the-stack-v2-dedup | C | #ifndef __MOD_TEST_MODE_H__
#define __MOD_TEST_MODE_H__
#include <ETLLib.hpp>
/************************************************************************/
/* 测试模式模块对外的接口 */
/************************************************************************/
/************************... | 1,327,991 |
the-stack-v2-dedup | C | /*
* gtty.c --
*
* Source for gtty procedure.
*
* Copyright 1986 Regents of the University of California
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice appear in all copies.... | 1,327,992 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<conio.h>
void main()
{
int n,d=0,sum=0,num;
printf("\n Enter number");
scanf("%d",&num);
n=num;
while(n!=0)
{
d=n%10;
sum=sum*10+d;
n=n/10;
}
printf("\n %d",sum);
if(num==sum)
{
printf("\n Palindrome");
}
else
{
printf("\n Not Palindrome");
}
getch();
}
| 1,327,993 |
the-stack-v2-dedup | C | /******************************************************************************
DRV_AT24 Library Interface Implementation
Company:
Microchip Technology Inc.
File Name:
drv_at24.c
Summary:
AT24 EEPROM Driver Library Interface implementation
Description:
The AT24 Library provides a interface... | 1,327,994 |
the-stack-v2-dedup | C | // topological sorting and find if DG is cyclic or not
#include <stdio.h>
#include <stdlib.h>
struct node {
int vertex;
struct node* next;
};
struct Graph {
int vertices;
struct node** adjLists;
};
// Create a node
struct node* createNode(int v) {
struct node* newNode = malloc(sizeof(struct nod... | 1,327,995 |
the-stack-v2-dedup | C | #!/share/local_rh9/bin/xrcm
//________________________________________________________________[ROOT MACRO]
//////////////////////////////////////////////////////////////////////////////
// @(#)Name: PrintFile.C
// @(#)Purpose: Output ROOT file info
// Description: Prints tree names, number of entries,... | 1,327,996 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
/*
很簡單的遞迴題目,別想太複雜
本來想用dfs,甚至bfs。後來才發現根本不用...
*/
void Fibonacci(int arr0[10000],int arr1[10000],int count,int*total);
int main()
{
int input;
int i,j;
int total;
int arr0[10000],arr1[10000];
while(scanf("%d",&input)!=EOF)
{
if(input == 0)
break;
arr0[0] = input;
... | 1,327,997 |
the-stack-v2-dedup | C | #ifndef __BF5XX_H__
#define __BF5XX_H__
#include <stdio.h>
#include <cdefBF53x.h>
#include <sys\exception.h>
#include "dm_types.h"
#define SCL 0x0001 // PF0
#define SDA 0x0002 // PF1
#define CLKIN (30.0e6) // clockin frequency in Hz
#define CORECLK (270.0e6) // core clock frequency in Hz
#define SYSCLK (5... | 1,327,998 |
the-stack-v2-dedup | C | #ifndef _SERVER_
#define _SERVER_
#include "Server.c"
void commandLine(char *req);
void server();
#endif | 1,327,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.