source string | code_lang string | content string | idx int64 |
|---|---|---|---|
the-stack-v2-dedup | C | /*
* Code for class EV_MENU_IMP
*/
#include "eif_eiffel.h"
#include "../E1/estructure.h"
#ifdef __cplusplus
extern "C" {
#endif
extern void F1967_25291(EIF_REFERENCE, EIF_TYPED_VALUE);
extern void F1967_25292(EIF_REFERENCE);
extern void F1967_25293(EIF_REFERENCE);
extern void F1967_25294(EIF_REFERENCE);
extern vo... | 1,330,600 |
the-stack-v2-dedup | C | /*
* Author: Logan Thomas
* Assignment Number: 3
* Date of Submission: 11/24/18
* Name of this file: main.c
* Description of the program: The main function of the assignment
*/
//<editor-fold desc="Includes">
#include "parser.h"
#include "helper.h"
#include <stdio.h>
#include <stdlib.h>
#include <zconf.h>
#incl... | 1,330,601 |
the-stack-v2-dedup | C | #include <stdlib.h> /* for exit() */
#include <stdint.h> /* for intptr */
#include "intermediate.h"
#define DEBUG (0)
char * opcodeNames[] = {
"PLUS", "MINUS", "TIMES", "DIVIDE", "MINUS_SELF",
"FLOAT_TO_INTEGER", "INTEGER_TO_FLOAT",
"ASSIGN",
"GOTO",
"IF_EQUAL", "IF_NOT_EQUAL", "IF_GREATER_OR_EQUAL",
"IF... | 1,330,602 |
the-stack-v2-dedup | C | #include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#define M 10
#define N 65535
int readOneInt(){
char b, r = 0;
read(0, &b, 1);
if (b == EOF) return -1;
while (b < '0' || b > '9') {
... | 1,330,603 |
the-stack-v2-dedup | C | /* http_fetcher.c - HTTP handling functions
Copyright (C) 2001 Lyle Hanson (lhanson@cs.nmu.edu)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at... | 1,330,604 |
the-stack-v2-dedup | C | /* OK, after alot of frustration lookng over all my textfile readin gprograms,
* this one if finally working. It takes a text file and parses its pargraphs
* into an array of linked lists. However, the final line must be a an empty newline */
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#define GENBUF... | 1,330,605 |
the-stack-v2-dedup | C | #include <stdlib.h>
int main(int argc, char* argv[])
{
if (argc==2) {
exit (atoi(argv[1]));
}
else {
exit(42);
}
}
| 1,330,606 |
the-stack-v2-dedup | C | /*
From adk0212@rit.edu Fri Sep 18 10:55 EDT 1998
Subject: Frequency analysis program for Crypto
written by Adam D Kropelin
compile with
cc -o freq freq.c
usage
freq inputfilename num_digrams num_trigrams
where inputfilename: name of text file to compute frequencies on
num_digrams: num... | 1,330,607 |
the-stack-v2-dedup | C | /*****************************************Copyright(C)******************************************
*******************************************浙江方泰*********************************************
**-----------------------------------------文件信息---------------------------------------------
**文 件 名: bsp_spi.c
**硬 ... | 1,330,608 |
the-stack-v2-dedup | C | /* $NetBSD: rk_i2s.c,v 1.10 2021/01/27 03:10:19 thorpej Exp $ */
/*-
* Copyright (c) 2019 Jared McNeill <jmcneill@invisible.ca>
* 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. Redis... | 1,330,609 |
the-stack-v2-dedup | C | #include<stdio.h>
int main()
{
long long a=0,b,count=0,t,n,cases=0;
scanf("%lld",&t);
while(t--)
{
a=0;
count=0;
scanf("%lld",&n);
while(n!=0)
{
if(n%2==0)
{
n=n/2;
}
else
{
... | 1,330,610 |
the-stack-v2-dedup | C | #include "AtlasLabels.h"
#include "AtlasLabels.C"
void plot(TString type, TString var) {
TString path = "/global/homes/s/sambt/workarea/nonpointing/analysis_output/" + type;
TFile *s1 = TFile::Open(path+"/gammagamma_prompt/gammagamma_prompt.root");
TString loose = "h_" + var + "_loose";
TString reg = "h_" + var;
... | 1,330,611 |
the-stack-v2-dedup | C |
/*
WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY.
This file was generated from AcousticRuntime.idl using "rtiddsgen".
The rtiddsgen tool is part of the RTI Connext distribution.
For more information, type 'rtiddsgen -help' at a command shell
or consult the RTI Connext manual.
*/
#ifndef AcousticRuntimePlugin_... | 1,330,612 |
the-stack-v2-dedup | C |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ps4sdk.h>
#include <orbislink.h>
#include <orbisGl2.h>
#include <unistd.h>
#include <stdarg.h>
#include <sys/stat.h>
OrbisPadConfig *confPad;
bool flag=true;
#define BROWSER_BACKGROUND_FILE_PATH "system/textures/msxorbis.png"
#define FILE_ICON_PA... | 1,330,613 |
the-stack-v2-dedup | C | /*!
* @file main.c
* @brief Color 4 Click example
*
* # Description
* This library contains API for the Color 4 Click driver.
* This driver provides the functions for the sensor configuration
* and for reading RGBW and ambient light data from the device.
* This example displays RGBW data, Ambient light level, C... | 1,330,614 |
the-stack-v2-dedup | C | // btserialclientserver.h
//
// Copyright (c) 2008 - 2010 Accenture. All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/lega... | 1,330,615 |
the-stack-v2-dedup | C | /*
* Copyright (c) 1996 David Parsons. 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, this lis... | 1,330,616 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include "ListasDobles.h"
#include "Persona.h"
int main()
{
nodoDoble * listaDoble = IncializarListaDoble();
persona per1={"nicolas", 20};
persona per2={"martina", 21};
persona per3={"josefina", 12};
persona per4={"agusto", 29};
listaDoble=Agregar_En_O... | 1,330,617 |
the-stack-v2-dedup | C | #ifndef ADTWS__H__
#define ADTWS__H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "operation.h"
#include "errors.h"
#include "utils.h"
#include "straight_list.h"
#include "ADT_Client.h"
#include "queue.h"
#include "ADTWS_Op.h"
#define OPERATION_PATH_POSITION 0
#define CLIENT_PATH_POSITION 1
#... | 1,330,618 |
the-stack-v2-dedup | C | #ifndef __AUDIO_H
#define __AUDIO_H
#include <stdint.h>
int flash_write(uint32_t flash_addr, void *src, int size);
int record_to_flash(void);
int playback_from_flash(void);
int record_to_sdcard(const char *file_in_sd, int *stop_flag);
int playback_from_sdcard(const char *file_in_sd);
int audio_init(void);
#endif /* ... | 1,330,619 |
the-stack-v2-dedup | C | /*
* Copyright (C) 2017, Northwestern University and Argonne National Laboratory
* See COPYRIGHT notice in top-level directory.
*/
/* $Id$ */
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <pnetcdf.h>
#include <dispatch.h>
#include <pnc_debu... | 1,330,620 |
the-stack-v2-dedup | C | /*
MPU6050 lib 0x02
copyright (c) Davide Gironi, 2012
Released under GPLv3.
Please refer to LICENSE file for licensing information.
Updates: maxosprojects (May 24 2016)
Changed functions to be able to address two units on one I2C bus.
Implemented in a dirty way just to get it working with MPU6050_GETATTITU... | 1,330,621 |
the-stack-v2-dedup | C | #PRNAME procm6
#DIRNAM "C:\Users\LuccaViccini\Desktop\UFJF\IC\VIC_CERN\nipscernufjf\Analise_Ponto_Fixo\procm6\procm6\Hardware\procm6_H"
#DATYPE 0
#NUBITS 32
#NDSTAC 16
#SDEPTH 16
#NUIOIN 2
#NUIOOU 2
void main()
{
//while(1==1)
{
// Criando o vetor de inputs d
int d_0 = in(0);
int d_1 = in(0);
... | 1,330,622 |
the-stack-v2-dedup | C | #include <ansi.h>
inherit SSERVER;
inherit SKILL;
int cast(object me, object target, string arg)
{
int sk,i,inn,cost,he,si;
object *enemy;
sk=me->query_spell("moxibustion");
inn=me->query_int();
if( environment(me)->query("no_cast") )
return notify_fail("這裡不能針灸。... | 1,330,623 |
the-stack-v2-dedup | C | //
// EncDecMacroBlocks.c
// chenSDLtest1
//
// Created by Chen Sokolovsky on 5/25/17.
// Copyright © 2017 chen. All rights reserved.
//
/*
LICENSE
5dv - Five Dimensional Vision - File/Stream protocol, Encoder & Decoder
@copywrite Chen Sokolovsky 2012-2017
This software is not open source. You may not use ... | 1,330,624 |
the-stack-v2-dedup | C | // SigLib Array Resizing Example
// Copyright (C) 2020 Sigma Numerix Ltd.
// Include files
#include <stdio.h>
#include <siglib.h> // SigLib DSP library
// Define constants
#define DST_ARRAY_LENGTH 60 // Output sample length - allow for growth
#define STATE_ARRAY... | 1,330,625 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* triangle.c :+: :+: :+: ... | 1,330,626 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define NUM_ITR 10000000
void process_array()
{
FILE *file;
file = fopen("input.txt", "r");
int *input = calloc(sizeof(int), NUM_ITR);
int i = 0;
int in;
int out = 0;
while(fscanf(file, "%d", &in) == 1) {
input[i] = in;
... | 1,330,627 |
the-stack-v2-dedup | C | #include <unistd.h>
#include <string.h>
#include "./ft_strncpy.c"
#include <stdio.h>
void ft_putchar(char c)
{
write(1, &c, 1);
}
void ft_putstr(char *str)
{
int i;
i = 0;
while (str[i] != '\0')
{
ft_putchar(str[i]);
i++;
}
}
int main()
{
char src[] = "123456789";
char dest[] = "";
char des[] = "";
un... | 1,330,628 |
the-stack-v2-dedup | C |
#pragma once
#include <glscbinding/noglsc.h>
#include <glscbinding/glsc/extension.h>
#include <glscbinding/glsc20/types.h>
#include <glscbinding/glsc20/boolean.h>
#include <glscbinding/glsc20/values.h>
#include <glscbinding/glsc20/bitfield.h>
#include <glscbinding/glsc20/enum.h>
#include <glscbinding/glsc20/functio... | 1,330,629 |
the-stack-v2-dedup | C | void static I_have_written(void){
}
int static the_code[3] = {4, 3, 2};
void static that_you_needed(void){
}
int static to_compile = 5;
void static and_which(void){
}
int static has_a_bunch_of = 2;
int static ridiculous = 8;
int static symbols[2];
void sides_and(void){
}
void Forgive_me(void){
}
int they_are_arbitrar... | 1,330,630 |
the-stack-v2-dedup | C |
void concatenar(char a[], char b[])
{ int i=0;
while (a[i]!='\0')
i++;
int j=0;
while (b[j]!='\0')
{ a[i+j] = b[j];
j++;
}
a[i+j] ='\0';
}
char concaternar_p(char **a, char **b)
{ char *p = *a;
char *p2 = *b;
while (*p!='\0')p++;
while (*p2!='\0')p2++;
cout<... | 1,330,631 |
the-stack-v2-dedup | C | #ifndef CAMERA_H
#define CAMERA_H
#include <math.h>
#include "maths.h"
#include "flying_thing.h"
struct camera {
vec3 pos, targ, up;
mat4 view_mat;
};
void camera_update_view_mat(struct camera *camera);
void camera_update_to_follow_flying_thing(struct flying_thing *flying_thing, struct camera *camera);
#en... | 1,330,632 |
the-stack-v2-dedup | C | -------- EventFlow: MiniGame_ShieldSurfing --------
Actor: Npc_IceVillage011
entrypoint: None()
actions: ['Demo_Talk', 'Demo_WarpToScheduleAnchor', 'Demo_OpenMessageDialog', 'Demo_ChangeEmotion', 'Demo_MoveToAnchor', 'Demo_TurnAndLookToObject', 'Demo_BecomeSpeaker']
queries: ['IsOnInstEventFlag']
params: {'CreateMode'... | 1,330,633 |
the-stack-v2-dedup | C | /*
* Copyright 1999-2006 University of Chicago
*
* 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,634 |
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,635 |
the-stack-v2-dedup | C | #ifndef _TArquivo_
#define _TArquivo_
#define SUCCESS 0
#define INVALID_NULL_POINTER -1
#define ERROR -2
#define NO_WAY_OUT -15
#define TXT_FILE 9
#define IMM_FILE 8
#define INCONSISTENT_FILE -10
#include"TMat2D.h"
#include"TStack.h"
#include"Ponto.h"
int open_file(char *file, TadMat **mat);
int convert_file(char *... | 1,330,636 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_t_ls_manipulators.c :+: :+: :+: ... | 1,330,637 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#define TRUE 1
#define FALSE 0
typedef unsigned char BYTE;
typedef struct STRUCT_IMAGE{
int width,height;
int depth;
void* pixels;
}ImageData;
#define PIXELMAX 255
typedef struct STRUCT_PIXEL{
int r,g,b;
}Pixel;
ImageData* createImage(int width,int height,int depth);
void... | 1,330,638 |
the-stack-v2-dedup | C | #include "lists.h"
/**
* add_node_end - function that returns the number of elements
* in a linked list_t list.
* @head: head of the struct.
* @str: head of the struct.
* Return:the address of the new element
*/
list_t *add_node_end(list_t **head, const char *str)
{
list_t *new_node, *temp;
unsigned int copy_l... | 1,330,639 |
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,640 |
the-stack-v2-dedup | C | version https://git-lfs.github.com/spec/v1
oid sha256:f94b71912f59af9f02ebaf8b41aa5b9b4902b978dd978fea380adccd3287cc63
size 4567
| 1,330,641 |
the-stack-v2-dedup | C | #pragma once
#include <OpenCL/cl.h>
void DEBUG_clSetKernelArg(cl_int clErr) const {
printf("clSetKernelArg error was: ");
switch(clErr) {
case CL_SUCCESS:
printf("none");
break;
case CL_INVALID_KERNEL:
printf("CL_INVALID_KERNEL");
break;
case CL_INVALID_ARG_INDEX:
printf("CL_INVALID_ARG_INDEX")... | 1,330,642 |
the-stack-v2-dedup | C | /* ds_gps.h ---
*
* Filename: ds_gps.h
* Description:
* Author: WILFRED
* Maintainer:
* Created:
* Last-Updated:
* By:
* Update #: 0
* Keywords:
* Compatibility:
*
*/
/* Commentary: PINS!
* BLACK : GROUND
* RED: 3.3v
* WHITE: TX
*... | 1,330,643 |
the-stack-v2-dedup | C | /*******************************************************************************
**+--------------------------------------------------------------------------+**
**| **** |**
**| **** ... | 1,330,644 |
the-stack-v2-dedup | C | /*
application code v.1
for uspd micron 2.0x
2012 - January
NPO Frunze
RUSSIA NIGNY NOVGOROD
OSIPOV V, SHASHUNKIN D, OSKOLKOVA O, UHOV E
*/
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <termios.h>
#include <sys/ioctl.h>
#i... | 1,330,645 |
the-stack-v2-dedup | C | //**********************************************************************`
//* This is an include file generated by Message Compiler. *`
//* *`
//* Copyright (c) Microsoft Corporation. All Rights Reserved. *`
//******************... | 1,330,646 |
the-stack-v2-dedup | C | #include <stdio.h>
#ifdef _CIVL
$input int N;
$input double global_in_u[N];
$input double global_in_u_1[N];
$input double global_in_C;
$input double global_in_D;
$input double global_u_b[N];
$output double global_u_1_b[N];
$assume(6<=N && N<=10);
#endif
void head_b (double *u, double *u_1, double C, double D, ... | 1,330,647 |
the-stack-v2-dedup | C | #include<sys/types.h>
#include<sys/ipc.h>
#include<sys/shm.h>
#include<stdlib.h>
#include<stdio.h>
#include<unistd.h>
#include<string.h>
#define TEXT_SZ 2048
struct shared_use_st{
int written_by_you;
char some_text[TEXT_SZ];
};
int main()
{
int running=1;
void * shared_memory=(void*)0;
struct shared_use_st *... | 1,330,648 |
the-stack-v2-dedup | C | #ifndef LIBK_TIMEOUT_H
#define LIBK_TIMEOUT_H
#include "libk_dlist.h"
#include <stdint.h>
struct timeout;
typedef void (*timeout_func_t)(struct timeout *t);
struct timeout {
sys_dnode_t node;
int32_t dticks;
timeout_func_t fn;
};
#endif // LIBK_TIMEOUT_H
| 1,330,649 |
the-stack-v2-dedup | C | void Drawvariable(TString varname, TString vartitle, TFile * input_mc_fonll, TFile * input_mc_data, float min, float max, int rebin)
{
TH1D* h_mc_fonll = ( TH1D *) input_mc_fonll->Get(Form("%s_signal_mcmatched",varname.Data()));
TH1D* h_mc_data = (TH1D *) input_mc_data->Get(Form("%s_signal_mcmatched",varname.Data()... | 1,330,650 |
the-stack-v2-dedup | C | /**
* EditDistance.cpp
*/
#include "EditDistance.h"
#include <vector>
#include <algorithm>
int EditDistance::minDistance(string word1, string word2)
{
return getMinDistance2(word1, word2);
}
int EditDistance::getMinDistance(string& word1, string& word2, int index1, int index2)
{
int length1 = word1.length();... | 1,330,651 |
the-stack-v2-dedup | C | /* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-options "-mdejagnu-cpu=power9 -O1" } */
#include <altivec.h>
vector bool int
fetch_data (vector unsigned int *arg1_p, vector unsigned int *arg2_p)
{
vector unsigned int arg_1 = *arg1_p;
vector uns... | 1,330,652 |
the-stack-v2-dedup | C | /************************************/
/* Nombre: ej2.c */
/* Trabajo: Threads y Sockets */
/* Numero de ejercicio: 2 */
/* Entrega: Primer Entrega */
/* */
/* Grupo N 63 */
/* D'Aranno Facundo 34.842.320 */
/* Marce... | 1,330,653 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<stdlib.h>
int main()
{
int *ary,*p,n,max;
printf("Enter size of array:");
scanf("%d", &n);
ary=(int *)calloc(n,sizeof(int));
for(ary=p; ary<p+n; ary++)
{
scanf("%d", &ary);
}
max=ary[0];
for(ary=p; ary<p+n; ary++)
{
if(ary>max)
{... | 1,330,654 |
the-stack-v2-dedup | C | /*
* Implementation of JIT engine control.
* Copyright (C) 2020-2023 LuaVela Authors. See Copyright Notice in COPYRIGHT
* Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
*
* Portions taken verbatim or adapted from LuaJIT.
* Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h... | 1,330,655 |
the-stack-v2-dedup | C |
#include "fdf.h"
int my_key_funct(int keycode)
{
if (keycode == 53)
exit(0);
return (0);
}
void ft_error(char *str)
{
ft_putstr(str);
ft_putchar('\n');
exit(0);
}
void fdf(char **matrixchar, t_xyzstruct *points_array, t_win e)
{
transform_struct_iso(points_array, ((e.y_size - 1) *
(ft_strlen_2darray(... | 1,330,656 |
the-stack-v2-dedup | C | // 201802162 지명하
int funcMul(int a, int b)
{
return (int) a * b;
}
| 1,330,657 |
the-stack-v2-dedup | C | /*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.3.0
* Git version: 30dccd7
* Options: -o /home/x/obfuscator/data/programs/8315.c
* Seed: 1071339288
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
#pragma pack(push)
#pragma pack(1)
struct S0 {
... | 1,330,658 |
the-stack-v2-dedup | C | #include "io_spi_platform.h"
#include <avr/power.h>
void io_spi_master_platform_init()
{
power_spi_enable();
DDR_SPI = _BV(DD_MOSI) | _BV(DD_SCK) | _BV(DD_SS);
SPCR = _BV(SPIE) | _BV(SPE) | _BV(MSTR)
//| _BV(SPR1) | _BV(SPR0) // clock rate = 16 MHz / 128
; // clock rate = 16 MHz ... | 1,330,659 |
the-stack-v2-dedup | C | /*
* CLIENT_FILE
*/
#include "BankATMSystem.h"
#include <stdio.h>
#include <stdlib.h>
/* Methods declaration */
void CreateAnAccount();
void AddMoneyToAnAccount();
void WithdrawMoneyFromAnAccount();
void InquiryAccount();
/* This was generated by rpcgen */
CLIENT *clnt; // CLIENT pointer which connects to SERVE... | 1,330,660 |
the-stack-v2-dedup | C | #ifndef __LINKIF_CONF_H
#define __LINKIF_CONF_H
#include "SysDataTypes.h"
#define HARD_DEV_ID (0x23) /* for RTK BASE */
#define KYLINK_USER_TYPE TYPE_RTK_Info_Resp = 0x61,
#define KYLINK_USER_TYPE_DATA Location_T LocationInfo;
#endif /* __LINKIF_CONF_H */
| 1,330,661 |
the-stack-v2-dedup | C | /* unbal6.h */
#define UNBAL6( a, b) ((a) + (b))
UNBAL6
(
x
,
| 1,330,662 |
the-stack-v2-dedup | C | /*
* assem.h - Function prototypes to translate to Assem-instructions
* using Maximal Munch.
*/
typedef struct {Temp_labelList labels;} *AS_targets;
AS_targets AS_Targets(Temp_labelList labels);
typedef struct AS_instr_ *AS_instr;
struct AS_instr_ { enum {I_OPER, I_LABEL, I_MOVE} kind;
union {s... | 1,330,663 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: ... | 1,330,664 |
the-stack-v2-dedup | C | #ifndef __platform_config_h__
#define __platform_config_h__
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif//WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winsock2.h>
#endif /* __platform_config_h__ */ | 1,330,665 |
the-stack-v2-dedup | C | #include <stdio.h>
int main()
{
int n, d;
scanf("%d %d", &n, &d);
int a[n];
for(int i=0; i<n; i++)
scanf("%d", &a[i]);
for(int i=0; i<n; i++)
printf("%d%c", a[(i+d) % n], i < n-1 ? ' ' : '\n');
return 0;
}
| 1,330,666 |
the-stack-v2-dedup | C | #include<stdio.h>
int main(){
int daynum;
printf("Enter day number : ");
scanf("%d", &daynum);
switch(daynum ){
case 1 :
printf("Day is Monday");
break;
case 2 :
printf("Day is Tuesday");
break;
case 3 :
printf("Day is Wednesday");
... | 1,330,667 |
the-stack-v2-dedup | C | //username and password
#include<stdio.h>
#include<string.h>
void main()
{
char username[20],password[10],str1[10],str2[10];
printf("Enter the details :\n");
printf("Username : ");
scanf("%s",username);
printf("Password : ");
scanf("%s",password);
if(strcmp(username,"Amruta"))
{
... | 1,330,668 |
the-stack-v2-dedup | C | #ifndef SORTED_LIST_H
#define SORTED_LIST_H
#include <stdlib.h>
struct Node {
void * data;
struct Node * next;
};
struct SortedList {
int (*cf)(void *, void *);
int size;
struct Node * head;
};
struct SortedListIterator {
struct Node * curr_node;
};
typedef int (*CompareFuncT)(void *, void *);
struct... | 1,330,669 |
the-stack-v2-dedup | C | #define _GNU_SOURCE
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <sched.h>
#include <string.h>
/**
* Note that 3.7 GHz for the clock speed is an average of the clock speeds seen on
* the c4 machines, it may not be the exact clock speed t... | 1,330,670 |
the-stack-v2-dedup | C | version https://git-lfs.github.com/spec/v1
oid sha256:d3d68f762aec51aa53af839724700cc714368d062c665675a272e9a7c2c342fe
size 17756
| 1,330,671 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft.h :+: :+: :+: ... | 1,330,672 |
the-stack-v2-dedup | C | /**
*
*/
#include "soc-hw.h"
//MF522 Command word
#define PCD_IDLE 0x00 //NO action; Cancel the current command
#define PCD_AUTHENT 0x0E //Authentication Key
#define PCD_RECEIVE 0x08 //Receive Data
#define PCD_TRANSMIT 0x04 ... | 1,330,673 |
the-stack-v2-dedup | C | #include "lista.h"
Lista *allocamentoMemoria() {
return (Lista *) malloc(sizeof(Lista));
}
Lista *inizializzazione() {
int i = 1;
Lista *head = allocamentoMemoria();
Lista *nodo = head;
nodo->info = i;
for(i = i + 1; i <= DIM; i++){
nodo->next = allocamentoMemoria();
nodo = ... | 1,330,674 |
the-stack-v2-dedup | C | #ifndef _STDIO_EXT_H
#define _STDIO_EXT_H
#include <sys/cdefs.h>
#include <stdio.h>
__BEGIN_DECLS
#if __ANDROID_API__ >= 23
size_t __fbufsize(FILE* __fp) __INTRODUCED_IN(23);
int __freadable(FILE* __fp) __INTRODUCED_IN(23);
#endif /* __ANDROID_API__ >= 23 */
#if __ANDROID_API__ >= __ANDROID_API_F... | 1,330,675 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_w2space.c :+: :+: :+: ... | 1,330,676 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: ... | 1,330,677 |
the-stack-v2-dedup | C | #include "greens_func.h"
#include "linalg.h"
#include "util.h"
#include <math.h>
#include <stdio.h>
int GreenUnequalTimeTest()
{
int status;
const int N = 5; // block size
const int L = 6; // number of time steps
const int prodBlen = 3; // number of B matrices pre-multiplied together
... | 1,330,678 |
the-stack-v2-dedup | C | #include <stm32f10x_gpio.h>
#include <stm32f10x_rcc.h>
#include <delay.h>
#include <ssd1289.h>
//#include <facepalm.h>
//#include <face565.h>
int main(void) {
GPIO_InitTypeDef PORT;
// Init DATA port
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA,ENABLE);
PORT.GPIO_Pin = GPIO_Pin_0 | GPIO_Pin_1 | GPIO_Pin_2 | GPI... | 1,330,679 |
the-stack-v2-dedup | C | /* Напишете функциите като макроси:
1. функция AVG(x, y), която смята средното аритметично на две подадени
като параметър числа.
2. функция AVG, която смята средното аритметично на числата от
определен диапазон.
3. Напишете функцията повдигане на степен, която повдига х на степен у
4. Напишете функцията TOUPPER, която ... | 1,330,680 |
the-stack-v2-dedup | C | #pragma scop
for (i = 0; i < n; i++)
A[i] = ina[i];
for (i = 0; i < n; i++)
B[i] = inb[i];
for (i = 0; i < n; i++)
for (j = 0; j < n; j++)
B[i] = B[i] + A[j];
for (i = 0; i < n; i++)
outb[i] = B[i];
#pragma endscop
| 1,330,681 |
the-stack-v2-dedup | C | /* Exercise 5.6
William Ngeow, June 2013
*/
#include <stdio.h>
#include <stdlib.h>
#define MAX 3000
int sumfactor(int n);
int isamicable(int m, int n);
void amicablepairs(void);
int
main(int argc, char *argv[]) {
amicablepairs();
/* job done */
return 0;
}
int
sumfactor(int n) {
... | 1,330,682 |
the-stack-v2-dedup | C | /*
** EPITECH PROJECT, 2021
** 42sh
** File description:
** Defines import_env_path
*/
#include "import_env_path.h"
#include "var.h"
#include "my/stdlib.h"
#include "var.h"
static const shell_char_t DOT[] = {'.', '\0'};
static const shell_char_t PATH[] = { 'p', 'a', 't', 'h', '\0' };
static void do_loop(shell_char_t... | 1,330,683 |
the-stack-v2-dedup | C | #include <std.h>
#include "/d/deku/inherits/forest.h"
inherit NFTRAIL;
void create() {
::create();
set_exits(([
"east" : F_ROOMS"18-11",
"south" : F_ROOMS"19-10",
"southeast" : F_ROOMS"18-10",
"west" : F_ROOMS"20-11",
"southwest" : F_ROOMS"21-10",
] ));
}
| 1,330,684 |
the-stack-v2-dedup | C | //=---------------------------------------------------------------------=
//
// This file was GENERATED for the AAF SDK
//
// $Id: AAFPrivate.h,v 1.19 2012/06/26 20:54:41 jptrainor Exp $ $Name: V116 $
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License... | 1,330,685 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#define B_S 5
typedef struct CELL {
int value;
struct CELL *next;
} CELL;
int myHash(int key);
void initTable(CELL *table[B_S]);
void insertTable(CELL *table[B_S], int data);
void printTable(CELL *table[B_S]);
void printList(CELL *p, int num);
CELL **searchData(CELL *table[B... | 1,330,686 |
the-stack-v2-dedup | C | #define PIN_LCD_BL GPIO_PIN_PA(28)
#define PWM_CH_BL 0
#define PIN_LCD_DISP GPIO_PIN_PA(31)
#define PIN_AC97_RST_N GPIO_PIN_PA(30)
#define PB_EXTINT_BASE 25
#define TS_IRQ 0
#define PIN_TS_EXTINT GPIO_PIN_PB(PB_EXTINT_BASE+TS_IRQ)
#define PIN_PB_LEFT GPIO_PIN_PB(11)
#define PIN_PB_RIGHT GPIO_PIN_PB(12)
#define PIN_PWR... | 1,330,687 |
the-stack-v2-dedup | C | #pragma once
#include <stdint.h>
#include <assert.h>
#include <exception>
#include "codegen/il2cpp-codegen.h"
// System.TimeSpan
struct TimeSpan_t1620;
// System.Object
struct Object_t;
// System.String
struct String_t;
// System.TimeSpan
#include "mscorlib_System_TimeSpan.h"
// System.Void System.TimeSpan::.ctor(Sy... | 1,330,688 |
the-stack-v2-dedup | C | #include "pgsodium.h"
PG_FUNCTION_INFO_V1(pgsodium_crypto_secretbox_keygen);
Datum
pgsodium_crypto_secretbox_keygen(PG_FUNCTION_ARGS)
{
size_t result_size = VARHDRSZ + crypto_secretbox_KEYBYTES;
bytea* result = _pgsodium_zalloc_bytea(result_size);
crypto_secretbox_keygen(PGSODIUM_UCHARDATA(result));
PG_RETURN_BYTE... | 1,330,689 |
the-stack-v2-dedup | C | #include <string.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
int validate_postfix(char *postfixArray) {
int counter = 0;
for (int i = 0; i < strlen(postfixArray); i++) {
if (isalnum(postfixArray[i])) {
counter++;
} else {
if (counter < 2) {
return 24;
}
cou... | 1,330,690 |
the-stack-v2-dedup | C | // Adapted from https://root.cern.ch/doc/v610/TMVAClassificationApplication_8C.html
// by Jennet Dickinson
// January 13, 2020
#include <cstdlib>
#include <vector>
#include <iostream>
#include <map>
#include <string>
#include "TFile.h"
#include "TTree.h"
#include "TString.h"
#include "TSystem.h"
#include "TROOT.h"
#in... | 1,330,691 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<unistd.h>
#include<strings.h>
#include<string.h>
#include<stdlib.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#define FIFO_NAME "fifo"
#define MAXLEN 100
int main(){
pid_t cpid;
cpid=fork();
if(cpid==-1||cpid>0)
return 0;
int fd;
char recvbuf[MAXLEN]... | 1,330,692 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* data_planes.c :+: :+: :+: ... | 1,330,693 |
the-stack-v2-dedup | C | /**********************************************************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No
* other uses are authorized. This software is owned by Renesas ... | 1,330,694 |
the-stack-v2-dedup | C | #ifndef SHMAMSTARTUP_H
#define SHMAMSTARTUP_H
#define _GNU_SOURCE
/* Header file for shmAMStartup.c */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <stdint.h>
#include "./amazing.h"
#include "./common.h"
/* Functions */
int* ... | 1,330,695 |
the-stack-v2-dedup | C | /* exercise9.c */
#include <stdio.h>
int main (void)
{
int input_low, input_up, index;
int sum = 0;
printf("Enter lower and upper integer limits: ");
while ((scanf("%d%d", &input_low, &input_up)) == 2)
{
if (input_low >= input_up)
break;
for(sum = 0, index = input_low; index <= input_up; index++)
sum +=... | 1,330,696 |
the-stack-v2-dedup | C | /*
* %CopyrightBegin%
*
* Copyright Ericsson AB 2004-2016. All Rights Reserved.
*
* 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
... | 1,330,697 |
the-stack-v2-dedup | C | ////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2006-2009 MStar Semiconductor, Inc.
// All rights reserved.
//
// Unless otherwise stipulated in writing, any and all information contained
// herein regardless in any format shall remain the sole proprietary of
// MSta... | 1,330,698 |
the-stack-v2-dedup | C | /*
fuse operation: rmdir
*/
/*
Copyright 2020 James R.
All rights reserved.
Read the 'LICENSE' file.
*/
#include <string.h>
#include "fs.h"
static void
delete_tag (sql, tag)
const char * sql;
sqlite3_int64 tag;
{
sqlite3_stmt * s = db_prepare(sql);
sqlite3_bind_int64(s, 1, tag);
db_finish(s);
}
int
fs_rmd... | 1,330,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.