source string | code_lang string | content string | idx int64 |
|---|---|---|---|
the-stack-v2-dedup | C | extern void floor(float* dst, float* src, unsigned int count);
| 1,330,500 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
int main(int ac, char** av) {
if (ac < 2) return (printf("No circuit number was provided.\n"));
int cNumber = atoi(av[1]);
if (cNumber < 0) return (printf("Please provide a positive number you quantum toot.\n"));
if (cNumber > 20000) return (printf("\n"));
}
| 1,330,501 |
the-stack-v2-dedup | C | void swap(int *x,int *y)
{
int t = *x;
*x = *y;
*y = t;
}
void quick_sort_rec(int *nums,int start,int end)
{
if (start >= end)
return;
int mid = nums[end];
int left = start, right = end - 1;
while(left<right)
{
while(nums[left]<mid && left<right)
left++;
while(nums[right]>=mid && left<right)
right--... | 1,330,502 |
the-stack-v2-dedup | C | #pragma once
#include <stdint.h>
#include <assert.h>
#include <exception>
#include "codegen/il2cpp-codegen.h"
struct t990;
struct t28;
struct t90;
struct t91;
#include "t49.h"
void m5410 (t990 * __this, t28 * p0, t49 p1, MethodInfo* method) IL2CPP_METHOD_ATTR;
t28 * m5411 (t990 * __this, t28 * p0, MethodInfo* meth... | 1,330,503 |
the-stack-v2-dedup | C | /////////////////////////////////////////////////////////////////////////////////////////
///////////////////////// Console ////////////////////
/////////////////////////////////////////////////////////////////////////////////////////
#ifdef LANG_RUS
?define DELETE_DISK_TEXT "П... | 1,330,504 |
the-stack-v2-dedup | C | //
#if defined NOMALLOC_SOURCE_HEAP_IMPL_H
#error "Implementation header should not be included from multiple sources."
#endif
#define NOMALLOC_SOURCE_HEAP_IMPL_H
#include <stdint.h>
#include <assert.h>
typedef struct ChuckLayout {
uint32_t lowerSize;
uint8_t lowerUsed: 1;
uint32_t size: 31;
struct Ch... | 1,330,505 |
the-stack-v2-dedup | C | /************************************************************/
/* NAME: Simos Gerasimou */
/* ORGN: University of York, UK */
/* FILE: Sensor_Info.h */
/* DATE: 2016 */
/****... | 1,330,506 |
the-stack-v2-dedup | C | main()
{
int i,j,la,lb,lc,aaa;
char a[256],b[256],c[256];
gets(a);
gets(b);
gets(c);
la=strlen(a);
lb=strlen(b);
lc=strlen(c);
aaa=0;
for (i=0;i<=la-1;i++)
{
for (j=0;(j<=lb-1)&&(i+j<=la-1);j++)
{
if (a[i+j]==b[j])
{
... | 1,330,507 |
the-stack-v2-dedup | C |
/************************************************
*
* file ilabel.c
*
* Functions: This file contains
* main
*
* Purpose:
* This program writes simple block letters
* the an image file. You can use these
* as labels for other images.
*
* ... | 1,330,508 |
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,509 |
the-stack-v2-dedup | C | /*
*John Rasay
*Homework 5
*ICS 451
*Prof. Ravi Narayan
*/
#include <stdio.h>
#include <stdlib.h>
int main()
{
//TCP header struct
typedef struct tcp_header {
unsigned short int tcph_srcport; //16bit
unsigned short int tcph_dstport; //16bit
unsigned int tcph_seqnum; //32bit
... | 1,330,510 |
the-stack-v2-dedup | C | /*
* user_callbacks.h
*
* Created on: Aug 14, 2018
* Author: dlsrk
*/
#ifndef USER_CALLBACKS_H_
#define USER_CALLBACKS_H_
#include "main_app.h"
void minusCb(void *data, Evas_Object *obj, void *event_info);
void plusCb(void *data, Evas_Object *obj, void *event_info);
void _scroll_start_cb(void *data, Evas_... | 1,330,511 |
the-stack-v2-dedup | C | #include <stdlib.h>
#include <stdio.h>
#include <assert.h>
int main()
{
printf("calling assert false\n\n");
assert(0);
return 0;
}
| 1,330,512 |
the-stack-v2-dedup | C |
#include "stdafx.h"
ULONG TlsIndex = TLS_OUT_OF_INDEXES;
PTRACER_CONFIG TracerConfig = NULL;
//
// Copies of the old allocation routines that will be restored when the last
// thread detaches.
//
PMALLOC OriginalMalloc = NULL;
PCALLOC OriginalCalloc = NULL;
PREALLOC OriginalRealloc = NULL;
PFREE OriginalFree = NULL... | 1,330,513 |
the-stack-v2-dedup | C | #ifndef __MENU_BUILDER_H
#define __MENU_BUILDER_H
#include <stdlib.h>
#include <ncurses.h>
#include <menu.h>
#include "util.h"
#include "constants.h"
#include "deck.h"
#include "gui_type.h"
// Convert an array of decks into menu items.
void convert_to_menu_items(Deck **decks, ITEM **menu_items, int num_items) {
... | 1,330,514 |
the-stack-v2-dedup | C | /**********************************************************************
* smart key
* Module:低功耗模块
* Copyright(c) 2015-2020 武汉百景互动有限公司
* All Rights Reserved.
*
* History:
* <author> <time> <version > <desc>
* 沈涛 2015-07-20 15:18 1.0 ... | 1,330,515 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <semaphore.h>
#include <pthread.h>
#include <time.h>
#include <stdbool.h>
#include <string.h>
#define NUM_MEDITATORS 24
#define NUM_KEYS 3
#define NUM_MATS 3
#define NUM_BOOKS 3
#define RESOURCE_COUNT 3 // keys, mats, books
#define SHORT_WAIT ... | 1,330,516 |
the-stack-v2-dedup | C | #include <stdio.h>
#include "util.h"
#include "table.h"
#define TABSIZE 127
typedef struct binder_* binder;
struct binder_
{
void* key;
void* value;
binder next;
void* prevtop;
};
struct TAB_table_
{
binder table[TABSIZE];
void* top;
};
static binder Binder(void* key, void* value, binder next, void* prevtop)... | 1,330,517 |
the-stack-v2-dedup | C | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#ifndef __VITAE_H__
#define __VITAE_H__
#include "EngineMinimal.h"
#endif
| 1,330,518 |
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,519 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* norm.c :+: :+: :+: ... | 1,330,520 |
the-stack-v2-dedup | C | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include "__tables.h"
#include "dynlist.h"
#include "fieldsmanager.h"
#include "chantier.h"
#include "misc.h"
#ifdef WIN32
#include "Win32Console.h"
#else
#include "UnixConsole.h"
#endif
/* Affiche un popup avec les données d'un chantier */
/* @... | 1,330,521 |
the-stack-v2-dedup | C | // Class: ReadElectron_Upstream_TMVA
// Automatically generated by MethodBase::MakeClass
//
/* configuration options =====================================================
#GEN -*-*-*-*-*-*-*-*-*-*-*- general info -*-*-*-*-*-*-*-*-*-*-*-
Method : MLP::Electron_Upstream_TMVA
TMVA Release : 4.2.0 ... | 1,330,522 |
the-stack-v2-dedup | C | /*
g_path_cryptw.c
*/
inherit "room/room";
int door_is_open, door_is_locked;
string door_long_desc;
object door1, door2;
realm() { return "NT"; }
reset(arg) {
if (arg) {
door1->set_locked(1);
door2->set_locked(0);
return 0;
}
set_light(0);
short_desc="Crypt";
long_desc="You are in a dark cr... | 1,330,523 |
the-stack-v2-dedup | C | /*----------------------------------------------------------------------------*
* No Warranty *
* Except as may be otherwise agreed to in writing, no warranties of any *
* kind, whether express or implied, are given by MTK with respect to any MTK *
... | 1,330,524 |
the-stack-v2-dedup | C | /*
* propedit-cmd.c -- Edit properties of files/dirs using $EDITOR
*
* ====================================================================
* Copyright (c) 2000-2004 CollabNet. All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this d... | 1,330,525 |
the-stack-v2-dedup | C | // https://www.hackerrank.com/challenges/funny-string/problem
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
int main()
{
int T;
char a[10000];
scanf("%d", &T);
while (T--) {
bool funny = true;
// get string
scanf("%s", a);
// find l... | 1,330,526 |
the-stack-v2-dedup | C | /*-------------------------------------------------------------------------
*
* selfuncs.h
* Selectivity functions for standard operators, and assorted
* infrastructure for selectivity and cost estimation.
*
*
* Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
* Portions Copyright (c) 1... | 1,330,527 |
the-stack-v2-dedup | C | /*
* https://www.geeksforgeeks.org/find-the-number-occurring-odd-number-of-times/
* Given an array of positive integers. All numbers occur even number of times
* except one number which occurs odd number of times. Find the number in O(n) time & constant space.
Examples :
Input : arr = {1, 2, 3, 2, 3, 1, 3}
... | 1,330,528 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strnstr.c :+: :+: :+: ... | 1,330,529 |
the-stack-v2-dedup | C | /*
* This is ROOT macro that converts the .dat file produced from ESEPP into proper histogram.
* Somehow, the ROOT files directly produced by ESEPP were not working with TBrowser().
*
*/
void ntuple(){
ifstream in;
// the name of the dat file from ESEPP goes here
in.open("../esepp/output/e17_e-.dat");
... | 1,330,530 |
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,531 |
the-stack-v2-dedup | C | //
// Team 6819 Autonomous Library. Code for fucntions for autonomous mode will go here.
//
void SetIR(){
int IRVal = HTIRS2readACDir(IRSensor);
if(IRVal == 5) {
motor[motorRight] = 50;
motor[motorLeft] = 50;
wait10Msec(5);
IRDump();
} else if(IRVal < 5) {
motor[motorRi... | 1,330,532 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <time.h>
int main(void)
{
time_t t1 = time(NULL);
struct tm *nPtr = localtime(&t1);
if(nPtr==NULL)perror("mydate:localtime_error:");
char now[30];
strftime(now, 60, "%b %d(%a), %Y %I:%M %p", nPtr);
printf("%s\n", now);
return 0;
}
| 1,330,533 |
the-stack-v2-dedup | C | #include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include "mem.h"
mem_t *mem_new(int size) {
mem_t *mem = malloc(sizeof(mem_t));
mem->size = size;
mem->mem = malloc(sizeof(uint8_t) * size);
return mem;
}
void mem_load(mem_t *mem, int offset, const ... | 1,330,534 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
int main()
{int r,R;
scanf("%d",&r);
R=2*r;
printf("%d minutos\n",R);
return 0;
}
| 1,330,535 |
the-stack-v2-dedup | C | #define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include<time.h>
//两个数的最大公约数int main()
//{
// int a = 0;
// int b = 0;
// int i = 0;
// int j = 0;
// printf("请输入两个整数:");
// scanf("%d%d", &a, &b);
// if (a >= b){
// for (i = b; i >= 1; i--){
// if (a%i == 0 && b%i == 0){
// ... | 1,330,536 |
the-stack-v2-dedup | C | #ifndef _DEFINES_
#define _DEFINES_
#define SUCCESS 0
#define ERROR -1
#define TRUE 1
#define FALSE 0
#endif
| 1,330,537 |
the-stack-v2-dedup | C | /**
* @file pruicss_device.c
*
* @brief This is device specific configuration file .
*/
/*
* Copyright (c) 2016-2019, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... | 1,330,538 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<stdbool.h>
struct process_struct
{
int at;
int bt;
int priority;
int ct,wt,tat,rt,start_time;
}ps[100];
int main()
{
int n;
bool is_completed[100]={false};
int bt_remaining[100];
int current_time = 0;
int completed = 0;;
//printf("Enter total number of... | 1,330,539 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/shm.h>
#include <sys/ipc.h>
int main(int argc, char** argv){
int chave, id_mem, *ptr_sh, i;
if (argc < 2){
printf("%s chave\n", argv[0]);
exit(0);
}
chave = atoi(argv[1]);
//criar a area de memoria compa... | 1,330,540 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/uio.h>
#include <unistd.h>
#include <sys/stat.h>
#ifndef API_H
#define API_H
#include "../tecnicofs-api-constants.h"
int tfsCreate(char *line);
int tfsDelete(char *path);
int t... | 1,330,541 |
the-stack-v2-dedup | C | //
// Created by yzy on 3/12/16.
// This file defines the data structure storage the lines of text.
//
/*
* 维护与处理文件结构的所有函数,对应的头文件中包含了对相关结构的定义。
* 也包含了一些文件操作的工具函数,比如拆分行,连接行等等。
*/
#include <stdlib.h>
#include <string.h>
#include "file_str.h"
#include "highlit.h"
#include "log_md.h"
int changed_flag = UNCHANGED;
v_... | 1,330,542 |
the-stack-v2-dedup | C | /*
* IDRBT - Cloud Retrieval
* Webpage: https://www.idrbt.ac.in
* Contact: hussainsajid@acm.org
* Institute of Development and Research in Banking Technology
*
* The Original Code is multiply.c
*
* Note : Install GNU Scientific Library(GSL) before compiling this file
*
* Compiling : $gcc -Wall -I/usr/local/... | 1,330,543 |
the-stack-v2-dedup | C | #include<stdio.h>
/*求k阶斐波拉契第m项的系数*/
int fb(int k,int m){
if (m<k) return 0;
else if(m==k||m==k+1) return 1;
else return 2*fb(k,m-1)-fb(k,m-1-k);
}
int fb1(int k,int m){
int sum=0;
if (m<k) return 0;
else if(m==k||m==k+1) return 1;
for(int i=m-1;i>m-1-k;i--)
sum+=fb1(k,i);
return sum;
}
int main(){
fo... | 1,330,544 |
the-stack-v2-dedup | C | /*
* A binary tree based memory allocator.
*
* Copyright 2017 Simon Swenson. All rights reserved.
*
* License: BSD License
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code m... | 1,330,545 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
void list_dir(char * dir)
{
struct dirent * pdirentry;
DIR * hdir = opendir(dir);
if( hdir==NULL )
return ;
while( (pdirentry = readdir(hdir))!=NULL ) {
printf("\n%02x - %s", pdirentry->d_type, pdirentry->d_name);
}
}
int main(int argc, char * ... | 1,330,546 |
the-stack-v2-dedup | C | #ifndef stack_h_INCLUDED
#define stack_h_INCLUDED
typedef struct stack stack_t;
typedef struct stack_ent stack_ent_t;
struct stack_ent {
void *data;
stack_ent_t *under;
};
struct stack {
stack_ent_t *head;
stack_ent_t *tail;
};
stack_t *stack_new();
void stack_push(stack_t *stack, void *data);
void ... | 1,330,547 |
the-stack-v2-dedup | C | /**** decoder.c ****/
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
/*#include <decoder.h>*/
#define _XOPEN_SOURCE 700
int check();
void display();
int solve(int x);
int magicsq[3][3] = {{4, -1, 8}, {-1, -1, -1}, {2, ... | 1,330,548 |
the-stack-v2-dedup | C | /* $NetBSD: arm_neon_imm.h,v 1.1 2023/08/07 01:07:36 rin Exp $ */
/*-
* Copyright (c) 2020 The NetBSD Foundation, Inc.
* 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. Redistribution... | 1,330,549 |
the-stack-v2-dedup | C | #ifndef USERPROG_SYSCALL_H
#define USERPROG_SYSCALL_H
#include <stdbool.h>
#include "userprog/process.h"
#include "vm/page.h"
void syscall_init (void);
// SOS Implementation project 2
struct lock file_lock; // lock for accessing file system
void hHalt (void);
void Exit (int);
pid_t Exec(const char *);
... | 1,330,550 |
the-stack-v2-dedup | C | /*
https://www.hackerrank.com/contests/codestorm-1-1/challenges/suzes-chocolate-story
*/
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
char stack[150];
int top=-1;
char pop()
{
if(top!=-1)
{
return stack[top--];
}
return -1;
}
void push(char ch)
{
stack[++top]=ch;
}
int main()
{... | 1,330,551 |
the-stack-v2-dedup | C | //
// Created by v1p3r on 07-04-2017.
//
#ifndef TSP_FILE_H
#define TSP_FILE_H
typedef struct _cidade{
int id;
float x;
float y;
float normX;
float normY;
int visited;
} cidade;
cidade * cidades;
int numberOfFiles; //numero de ficheiros a ler
int numberOfCities;
char **filesToRead;
char **fi... | 1,330,552 |
the-stack-v2-dedup | C | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
/* Matthew Kosnik: mkosnik@uchicago.edu
/* Peter Wagner: wagnerpj@si.edu
/*
/* This file is copyright (C) 2000 Matthew Kosnik
/* 2003 Peter J. Wagner
/*
/* This program is free software; you can redistribute i... | 1,330,553 |
the-stack-v2-dedup | C | ../../../XMPPFramework/Extensions/XEP-0198/Private/XMPPStreamManagementStanzas.h | 1,330,554 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include "allvars.h"
#include "proto.h"
/*
* This file contains the computation of the gravitational force
* by means of a tree. The type of tree implemented
* is a geometrical oct-tree, starting from a cube encompas... | 1,330,555 |
the-stack-v2-dedup | C | #warning NSBundle+GNUstepBase.h is now included using the path <GNUstepBase/NSBundle+GNUstepBase.h>
#include <GNUstepBase/NSBundle+GNUstepBase.h>
| 1,330,556 |
the-stack-v2-dedup | C | #pragma once
void test_bind(); | 1,330,557 |
the-stack-v2-dedup | C | #include <stdio.h>
int main(){
double a = 1.5;
int b = 2;
printf("%lf %d\n", a, b);
}
| 1,330,558 |
the-stack-v2-dedup | C | #ifndef GBA_H
#define GBA_H
#include "../common/Types.h"
#include "../System.h"
#include "../Util.h"
const uint64_t TICKS_PER_SECOND = 16777216;
#define SAVE_GAME_VERSION_1 1
#define SAVE_GAME_VERSION_2 2
#define SAVE_GAME_VERSION_3 3
#define SAVE_GAME_VERSION_4 4
#define SAVE_GAME_VERSION_5 5
#define ... | 1,330,559 |
the-stack-v2-dedup | C | cocci_test_suite() {
void __init cocci_id/* arch/arm/mach-ixp4xx/coyote-setup.c 92 */;
void cocci_id/* arch/arm/mach-ixp4xx/coyote-setup.c 92 */;
struct platform_device *cocci_id/* arch/arm/mach-ixp4xx/coyote-setup.c 87 */[]__initdata;
struct plat_serial8250_port cocci_id/* arch/arm/mach-ixp4xx/coyote-setup.c 64 */... | 1,330,560 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <json-c/json.h>
#include "dds.h"
#include "general.h"
#include "asr.h"
#include "ray_app.h"
#include "gk_app.h"
#include "duilite.h"
#include "ai_vr.h"
#include "asoundlib.h"
#include "debug_prin... | 1,330,561 |
the-stack-v2-dedup | C |
#include "header.h"
//floppy https://blog.csdn.net/judyge/article/details/52289104
//harddisk https://blog.csdn.net/fjlq1994/article/details/49472827
// mouse
// keyboard https://www.jianshu.com/p/b45b36261274
// vga https://blog.csdn.net/qq_39148922/article/details/85005271
int ReadDisk(unsigned lba, uns... | 1,330,562 |
the-stack-v2-dedup | C | #include "approximation.h"
#define C_k 27.79
ANNS_CND(A_appr) {return u[0] - v[0];}
ANNS_CND_G(A_appr_a) {return u_a;}
ANNS_FUN(A_appr_bl_f) {
double ek = exp(C_k), ek_ = exp(-C_k), ekx = exp(C_k * x[0]), ekx_ = exp(-C_k * x[0]);
return ((ek - 1) * ekx_ + (1 - ek_) * ekx ) / (ek - ek_);
}
static v... | 1,330,563 |
the-stack-v2-dedup | C | ////////////////////////////////////////////////////////////
// this file is used for s3c2440 timer configuration
//
// Auther: Wu Zhigang; wzgpeter@163.com
// Date: 2019-10-26
//
#include "FreeRTOS.h"
#include "task.h"
#include "devRegs.h"
#include "regs_opt.h"
#include "rcu.h"
#include "gpio.h"
#ifndef true
#... | 1,330,564 |
the-stack-v2-dedup | C | //
// Created by 赵英坤 on 8/17/21.
// | 1,330,565 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <assert.h>
int main(void){
int T,N,sumN;
long long int sum;
scanf("%d",&T);
assert(T>=1 && T<=25000);
sumN = 0;
while(T>0){
scanf("%d",&N);
assert(N>=2 && N<=50000);
sumN += N;
if(T==1){
assert(sumN<=50000);
}
long long int a[N];
sum = 0;
for(int i=0;i<N;i++){... | 1,330,566 |
the-stack-v2-dedup | C | #pragma once
#include "buildShaders.h"
//Fragment Shaders
unsigned int colorred1,
colorred2,
colorred3,
colorwine1,
colorwine2,
colorwine3,
colorwine4,
colorpurple1,
colorpurple2,
colorpurple3,
colormarine1,
colormarine2,
colormarine3,
colorblue1,
colorblue2,
colorblue3,
colorskyblue1,
colorskyblue2,
colorskyblue3,
c... | 1,330,567 |
the-stack-v2-dedup | C | #include "common.h"
#include "umonitor.h"
#include "autoload.h"
#include "load.h"
/*! \file
\brief Detect which profile to load
*/
#define PVAR ((autoload_pvar *) (self->pvar))
static void find_profile_and_load(autoload_class * self, int load, int print);
static void set_force_load(autoload_class * self, int force... | 1,330,568 |
the-stack-v2-dedup | C | #ifndef DGEMM
#define DGEMM
#include <stddef.h>
#include <x86intrin.h>
extern void scalar_dgemm(double *a, double *b, double *c, size_t n);
extern void avx_dgemm(double *a, double *b, double *c, size_t n);
extern void avx_unroll_dgemm(double *a, double *b, double *c, size_t n);
void avx_unroll_blocked_dgemm(double... | 1,330,569 |
the-stack-v2-dedup | C | /*
* Name: Nathan Tjoar
* UID: 005081232
* Email: ntjoar@g.ucla.edu
* */
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <getopt.h>
#include <errno.h>
#include <signal.h>
void signal_handler(int signum){
if(signum == SIGSEGV) {
fprintf(stderr,... | 1,330,570 |
the-stack-v2-dedup | C | #ifndef _Activation_h_
#define _Activation_h_
/* Activation.h
*
* Copyright (C) 1993-2011 David Weenink
*
* This program is free oftware; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, ... | 1,330,571 |
the-stack-v2-dedup | C | #include "mpi_datatype_Datatype.h"
#include "jni_mpi.h"
/*
* Class: mpi_datatype_Datatype
* Method: _commit
* Signature: (J)V
*/
JNIEXPORT void JNICALL
Java_mpi_datatype_Datatype__1commit__J(
JNIEnv *env, jclass class, jlong type)
{
tJniType *_type = (tJniType*)type;
int result = MPI_Type_comm... | 1,330,572 |
the-stack-v2-dedup | C | ../../../YYButton/YYButton/RectViewController.h | 1,330,573 |
the-stack-v2-dedup | C | //qingshe.c
#include <ansi.h>
inherit NPC;
void create()
{
set_name("竹叶青蛇", ({ "qing she", "she" }) );
set("race","蛇类");
set("age", 2);
set("long", "一只让人看了起鸡皮疙瘩的竹叶青蛇。\n");
set("attitude", "peaceful");
set("str", 20);
set("cor", 20);
set("combat_exp", 3000+random(300));
set("eatable",1);
set("afterdie","/d/... | 1,330,574 |
the-stack-v2-dedup | C | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Soft... | 1,330,575 |
the-stack-v2-dedup | C | //
// Created by alvis on 2021/8/7.
//
#include "repl_loop.h"
#include "ctrl.h"
#include <termios.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void clear_cli_line()
{
printf("\x1b[2K");
printf("\x1b[1G");
}
void print_cli_format()
{
printf("%s%s",CLI_NAME ,CLI_BREAKER);
}
void echo_di... | 1,330,576 |
the-stack-v2-dedup | C | /* Copyright (c) 2011 The LevelDB Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. See the AUTHORS file for names of contributors.
Copyright 2013 BitPay, Inc.
*/
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include "... | 1,330,577 |
the-stack-v2-dedup | C | #include <stdio.h>
void main()
{
int n;
int *pi;
printf ("Número de elementos del array: ") ;
scanf ("%d", &n) ;
pi = (int*)malloc(n*sizeof(int));
for (int i = 0; i < n-1; i++)
{
// scanf(...)
// pi[i] = ...
}
} | 1,330,578 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strequ.c :+: :+: :+: ... | 1,330,579 |
the-stack-v2-dedup | C | /* Author: ngupt009
* Partner(s) Name: Surya Singh
* Lab Section:
* Assignment: Lab # Exercise #
* Exercise Description: [optional - include for your own benefit]
*
* I acknowledge all content contained herein, excluding template or example
* code, is my own original work.
*/
#include <avr/io.h>
#ifdef _SIMUL... | 1,330,580 |
the-stack-v2-dedup | C | #include <Windows.h>
#ifndef _AUTO_FLY_H
#define _AUTO_FLY_H
#define MAX_X 500
#define MAX_Y 800
typedef enum _FLY_STATE
{
FLY_OUT,
FLY_HIT,
FLY_MOVED,
}FLY_STATE;
typedef enum _FLY_TYPE
{
FLY_TYPE_BULLET,
FLY_TYPE_ENEMY,
FLY_TYPE_MONEY,
}FLY_TYPE;
typedef struct _AUTO_FLY
{
FLY_TYPE type;
int x;
int y;
... | 1,330,581 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_atoi.c :+: :+: :+: ... | 1,330,582 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "linked_list.h"
const int DEBUG = 0;
void initList(LL* L) {
L->head = NULL;
L->tail = NULL;
}
void destroyList(LL* L){
/*LLNode* curr;
while(L->head != NULL) {
curr = L->head;
removeNode(L, curr);
}*/
}
/* getSize(L)
Return the number o... | 1,330,583 |
the-stack-v2-dedup | C | #include <reg52.h>
#include <intrins.h>
#define LED P0
void delay1s(void) //¾§ÕñƵÂÊ12MHz£¬Îó²î0us
{
unsigned char a, b, c;
for(c = 167; c > 0; c--)
for(b = 171; b > 0; b--)
for(a = 16; a > 0; a--);
_nop_(); //if Keil,require use intrins.h
}
void main(void)
{
unsigned char i = 0... | 1,330,584 |
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,585 |
the-stack-v2-dedup | C | /**
* MIT License
*
* Copyright (c) 2017 MatrixJoeQ
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 1,330,586 |
the-stack-v2-dedup | C | #include <stdlib.h>
#include "slide_line.h"
#include <stdio.h>
int merge_right(int *line, size_t size);
int merge_left(int *line, size_t size);
int slide_right(int *line, size_t size);
int slide_left(int *line, size_t size);
int slide_line(int *line, size_t size, int direction)
{
(void) line;
(void) size;
(void) d... | 1,330,587 |
the-stack-v2-dedup | C | #pragma once
enum Role
{
X, O
};
| 1,330,588 |
the-stack-v2-dedup | C |
/* 引用头文件 *****************************************************************/
#include "usart.h"
/* 私有数据类型 ***************************************************************/
/* 私有常数宏 *****************************************************************/
/* 私有动作宏 ****************************************************************... | 1,330,589 |
the-stack-v2-dedup | C | /*
* sclp.h
*
* Copyright 2015 Ryota Kawashima <kawa1983@ieee.org> Nagoya Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
*... | 1,330,590 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putbin.c :+: :+: :+: ... | 1,330,591 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <string.h>
#include <ctype.h>
// To check presence of the MIPSPro 7.2 or later compilers. And check for c99 standard as restrict is supported in c99
#if ( _COMPILER_VERSION >= 720 && __STDC_VERSION__ == 199901L)
#define RESTRICT restrict
#else
#define RESTRICT
#endif
#define FROM_STA... | 1,330,592 |
the-stack-v2-dedup | C | /*
File: Lists.c
Contains: List Manager stuff and associated routines
Written by:
Copyright: Copyright © 1995-1999 by Apple Computer, Inc., All Rights Reserved.
You may incorporate this Apple sample source code into your program(s) without
restriction. This Apple sample source code has been provided ... | 1,330,593 |
the-stack-v2-dedup | C | #region Local Var
var uLocal_0 = 0;
var uLocal_1 = 0;
int iLocal_2 = 0;
int iLocal_3 = 0;
int iLocal_4 = 0;
int iLocal_5 = 0;
int iLocal_6 = 0;
int iLocal_7 = 0;
int iLocal_8 = 0;
int iLocal_9 = 0;
int iLocal_10 = 0;
int iLocal_11 = 0;
var uLocal_12 = 0;
var uLocal_13 = 0;
float fLocal_14 ... | 1,330,594 |
the-stack-v2-dedup | C | #include <stdio.h>
int main() {//Напишите программу, которая по описанию пути к кладу определяет точные координаты клада
int N, i, steps, x=0, y=0;
scanf ("%d", &N);
char str [100];
for (i=0; i<N; i++) {
scanf("%s %d", str, &steps);
if (str [0] =='N') y=y+steps;
if (s... | 1,330,595 |
the-stack-v2-dedup | C | /* ====================================================================
* Copyright (c) 1995 The Apache Group. 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 sou... | 1,330,596 |
the-stack-v2-dedup | C | /**
* Author: Aryan Timla
* Assignment 2.3
* This program takes x and an ε and computes
* the square root of x using the given method developed for EDSAC.
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int main(int argc, char ** argv)
{
double x, Epsilon;
if(argc !=3)
{printf("Please enter only 2 ... | 1,330,597 |
the-stack-v2-dedup | C | /* $Id: pres_conj.c,v 1.1.1.1 2009/02/07 20:24:34 niklas Exp $ */
#include <basic/bool.h>
#include <omega/omega_core/oc.h>
#include <omega/pres_conj.h>
#include <omega/pres_cmpr.h>
#include <omega/Relation.h>
#include <omega/omega_i.h>
#include <basic/Bag.h>
namespace omega {
int NR_CONJUNCTS, MAX_CONJUNCTS;
/*
*... | 1,330,598 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <string.h>
int romanToInt(char* s) {
int result = 0;
for(int i = 0; i < strlen(s); i++)
{
if(s[i] == 'I')
{
if(s[i+1] != 'V' && s[i+1] != 'X')
{
result += 1;
printf("test\n");
}
... | 1,330,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.