source string | code_lang string | content string | idx int64 |
|---|---|---|---|
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
#include <string.h>
void mgetpid(){
pid_t t=getpid();
fprintf(stdout,"Pid: %d\n",t);
}
void mgetppid(char* buf){
pid_t t=getppid();
fprintf(stdout,"Ppid: %d\n",t);
}
void mgetpgrp(){
pid_t t=getpgrp();
fprintf(stdou... | 1,329,500 |
the-stack-v2-dedup | C | #include<stdio.h>
int main()
{
char c[100];
int i = 1;
while(gets(c))
{
if(c[0] != '*')
{
if(c[0] == 'H')
printf("Case %d: Hajj-e-Akbar\n",i);
if(c[0] == 'U')
printf("Case %d: Hajj-e-Asghar\n",i);
}
i... | 1,329,501 |
the-stack-v2-dedup | C | /*
* vbe.h
*
* Created on: 2017. 8. 29.
* Author: Yummy
*/
#ifndef __VBE_H__
#define __VBE_H__
#include <types.h>
#pragma once
// 매크로, 모드 정보 블록이 저장된 어드레스
#define VBE_MODEINFO_BLOCKADDR 0x7E00
// 그래픽 모드로 시작하는 플래그가 저장된 어드레스
#define VBE_GUIMODE_STARTADDR 0x7C0A
// 구조체
#pragma pack(push, 1)
// VBE에서 정의한 모... | 1,329,502 |
the-stack-v2-dedup | C | #define MAVLINK_VERSION "2019.4.4"
| 1,329,503 |
the-stack-v2-dedup | C | const char index_html[] PROGMEM = R"=====(
<!DOCTYPE html>
<html lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<meta name='viewport' content='width=device-width' />
<title>WS2801FX Ctrl</title>
<script type='text/javascript' src='main.js'></script>
<style>
* {
... | 1,329,504 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_parse.h :+: :+: :+: ... | 1,329,505 |
the-stack-v2-dedup | C | #ifndef _TIF_ERROR__
#define _TIF_ERROR__
#include "tiffiop.h"
#include "tiffio.h"
TIFFErrorHandlerExt _TIFFerrorHandlerExt = NULL;
TIFFErrorHandler TIFFSetErrorHandler(TIFFErrorHandler handler);
TIFFErrorHandlerExt TIFFSetErrorHandlerExt(TIFFErrorHandlerExt handler);
void TIFFError(const char* module, const char* ... | 1,329,506 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<stdlib.h>
struct queue{
int item;
struct queue *next;
struct queue *prev;
};
struct queue *front;
struct queue *rear;
void insert(int x,int ele)
{
struct queue *temp;
temp=(struct queue*)malloc(sizeof(struct queue));
temp->item=x;
if (front==NULL)
{
rear=temp;
fro... | 1,329,507 |
the-stack-v2-dedup | C | /*
============================================================================
Name : xsenscomm.c
Author : Jamie Macaulay
Version :
Copyright : Open Source
Description : Library for parsing of xsens and other data signals from SoundTrap
sensor package
=========================================... | 1,329,508 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
float hasilpers[5];
float peubah[5][5];
float inputPeubah(int x){
int i, j;
for(i=0; i<x; i++){
printf("Persamaan ke-%d \n", i+1);
for(j=0; j<x; j++){
printf("Masukan peubah X%d = ", j+1);
scanf("%f", &peubah[i][j]);
}
... | 1,329,509 |
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>
struct t263;
#include "t187.h"
#include "t350.h"
#include "t323.h"
struct t351 : public t187
{
int32_t f2;
float f3;
t263 * f4;
t323 f5;
};
| 1,329,510 |
the-stack-v2-dedup | C | /*
* Daemon to monitor activity on network ports.
*
* A list of network ports can be created in initialise_port_activity_monitors
* naming an rdb variable containing a comma separated list of network ports
* to monitor.
*
* update_port_activity_monitors is regularly called to monitor
* activity in the sysfs fil... | 1,329,511 |
the-stack-v2-dedup | C | int plus(int a, int b) { return a + b; }
int main() { return plus(1, plus(2, 3)); }
| 1,329,512 |
the-stack-v2-dedup | C | /*
* Copyright (c) 2007, Brian Koropoff
* All rights reserved.
*
* 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 must retain the above copyright
* notice, this list of c... | 1,329,513 |
the-stack-v2-dedup | C |
// To check if a library is compiled with CocoaPods you
// can use the `COCOAPODS` macro definition which is
// defined in the xcconfigs so it is available in
// headers also when they are imported in the client
// project.
// AFNetworking
#define COCOAPODS_POD_AVAILABLE_AFNetworking
#define COCOAPODS_VERSION_MAJOR_... | 1,329,514 |
the-stack-v2-dedup | C | #ifndef GLOBALDEFS_H
#define GLOBALDEFS_H
#include <QtDebug>
// For enabling/disabling debug mode (For disable comment the definition of DEBUG_UTILS
#define DEBUG_UTILS
#ifdef DEBUG_UTILS
#define DEBUG_LOG qDebug() << __func__ << " " << __LINE__;
#endif
#define DEFAULT_BLOCK_SIZE 25
#define PLAYER_TIME... | 1,329,515 |
the-stack-v2-dedup | C | #include <stdio.h>
int main()
{
/* int */
int i = 0;
int inext = 0, ilast = 0;
/* going up */
inext = ilast + 1;
while (inext > ilast) {
ilast = inext;
++inext;
++i;
}
printf("biggest int: %d\n", ilast);
/* going down */
inext = 0; ilast = 0;
inext = ilast - 1;
i = 0;
while (ine... | 1,329,516 |
the-stack-v2-dedup | C | /* Copyright 2000-2 by Roger S. Bivand. */
#include "spdep.h"
SEXP card(SEXP nb)
{
int i, n=length(nb), pc=0, first_value, li;
SEXP ans;
PROTECT(ans = NEW_INTEGER(n)); pc++;
for (i=0; i < n; i++) {
li = length(VECTOR_ELT(nb, i));
if (li > 0)
first_value = INTEGER_POINTER... | 1,329,517 |
the-stack-v2-dedup | C | ../../../ReactiveCocoa/ReactiveCocoa/NSString+RACSequenceAdditions.h | 1,329,518 |
the-stack-v2-dedup | C | #include <stdio.h>
#include "thing.h"
THING *actorHere(void)
{
THING *thg;
for (thg = thgs; thg < endOfThgs; thg++)
{
if (thg->location == player->location && thg->type == BEING)
{
return thg;
}
}
return NULL;
}
int listObjectsAtLocation(THING *location)
{
... | 1,329,519 |
the-stack-v2-dedup | C | #ifndef MATHC_MAT_MAT3_H
#define MATHC_MAT_MAT3_H
#include "matn.h"
#include "../types/float.h"
#include "../vec/vecn.h"
/** dst = r==c ? 1 : 0 (identity) */
static mat3 mat3_eye() {
mat3 res;
matN_eye(res.v, 3);
return res;
}
/** dst = mat[row][:] */
static vec3 mat3_get_row(mat3 mat, int row) {
... | 1,329,520 |
the-stack-v2-dedup | C | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | 1,329,521 |
the-stack-v2-dedup | C | /**
* @file sm_app.h
* @author Mohammed Fazlur Rahman (raseleee02@gmail.com)
* @brief Application for the soil moisture sensor
* @version 0.1
* @date 2020-11-11
*
* @copyright Copyright (c) 2020
*
*/
#ifndef SM_H
#define SM_H
/**
* @brief Function to initilize the application
* @remark Has to be run firs... | 1,329,522 |
the-stack-v2-dedup | C |
/* Include Guard */
#ifndef GAMEPAD_MANAGER_H
#define GAMEPAD_MANAGER_H
/*************************************************************************************************/
/* C++ compiler compatibility */
#ifdef __cplusplus
extern "C" {
#endif
/*********************************************************************... | 1,329,523 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <unistd.h>
#include <omp.h>
/* Q1: Can you predict the sequence of printf in this program? Do */
/* threads exit from the barrier in any specific order? */
int main ()
{
int myid;
#pragma omp parallel private(myid) num_threads(4)
{
int sleeptime;
myid=omp_... | 1,329,524 |
the-stack-v2-dedup | C | /*
*+
* Name:
* UTIL_SPOOL
* Purpose:
* Spool a file to a printer
* Language:
* Starlink ANSI C
* Invocation:
* CALL UTIL_SPOOL( FILE, TYPE, DELETE, STATUS )
* Description:
* Spool a file to the printer using a command defined by the ASTERIX
* environment variable AST_<TYPE>_SPOOL. Erro... | 1,329,525 |
the-stack-v2-dedup | C | #include "monty.h"
void _stack(
stack_t **stack __attribute__((unused)),
unsigned int line_number __attribute__((unused))
){
appData->way = LIFO;
}
| 1,329,526 |
the-stack-v2-dedup | C | /**
* Copyright 2023 University of Adelaide
*
* 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 or... | 1,329,527 |
the-stack-v2-dedup | C | /**
* The Utilities file contains some commom use functions.
*/
#ifndef UTILITIES_H
#define UTILITIES_H
#include <QtCore/qglobal.h>
#include <QDebug>
QT_FORWARD_DECLARE_CLASS(QAudioFormat)
// Return the audio duration in us considering the format and the size
qint64 audioDuration(const QAudioFormat &format, qint6... | 1,329,528 |
the-stack-v2-dedup | C | //Numpy array shape (1, 1, 32, 2)
//Min -0.409533411264
//Max 0.389571458101
//Number of zeros 0
weight_default_t w5[64] = {-0.316561758518, -0.038788765669, -0.052438884974, 0.119385272264, 0.345465034246, -0.409533411264, 0.389571458101, 0.034858345985, -0.228592082858, -0.104781121016, -0.221685230732, 0.0416737496... | 1,329,529 |
the-stack-v2-dedup | C | #define ELF_HEADER_SIZE 52
#define ELF_IDENTITY_MAGIC0 0x7F
#define ELF_IDENTITY_MAGIC1 'E'
#define ELF_IDENTITY_MAGIC2 'L'
#define ELF_IDENTITY_MAGIC3 'F'
#define ELF_IDENTITY_CLASS_NONE 0
#define ELF_IDENTITY_CLASS_32 1
#define ELF_IDE... | 1,329,530 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<stdlib.h>
struct node
{
struct node *left;
struct node *right;
struct node *parent;
int data;
};
struct node *root = NULL;
struct node *create_node(int x)
{
struct node *newnode = (struct node *)malloc(sizeof(struct node));
newnode->data = x;
newnode-... | 1,329,531 |
the-stack-v2-dedup | C | /*
********************************************************************************
* COPYRIGHT(c) ЗАО «ЧИП и ДИП», 2020
*
* Программное обеспечение предоставляется на условиях «как есть» (as is).
* При распространении указание автора обязательно.
*****************************************************************... | 1,329,532 |
the-stack-v2-dedup | C | #include<stdio.h>
int main()
{
const int x=5;
const int *ptrx;
ptrx = &x;
*ptrx = 10;
printf("%d\n", x);
//error
//it is real only (*ptrx) not allocated
return 0;
}
| 1,329,533 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<math.h>
#include<stdlib.h>
void printMatrix(double *A, int n) {
printf("Matix A: \n");
for (int i=0; i<n; i++) {
for (int j=0; j<n; j++) {
printf("%f ", A[i * n + j]);
}
printf("\n");
}
}
void printPivot(int* ipiv, int n) {
printf("\nPivo... | 1,329,534 |
the-stack-v2-dedup | C | /**
* @file main.c
* @date 08/16/2010 05:38:16 PM
* @author László Veréb
* @brief
*/
#include "fitting.h"
#include "util_math.h"
int main(int argc, char* argv[]) {
SimInspiralTable injParams;
PPNParamStruc ppnParams;
if (argc != 17) {
printf(
" 1 2 3 4 5 6 7 8 9 ... | 1,329,535 |
the-stack-v2-dedup | C | /* Lasem
*
* Copyright © 2007-2008 Emmanuel Pacaud
*
* 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 of the License, or (at your option) any later version.
*
*... | 1,329,536 |
the-stack-v2-dedup | C | #ifndef __LCD_EDP_ANX9804_H__
#define __LCD_EDP_ANX9804_H__
#include "panels.h"
/**********************************************************************
*
* anx9804 function
*
**********************************************************************/
//define
/********************************************************... | 1,329,537 |
the-stack-v2-dedup | C | /*
Title - nonblock_wait
Author - Shashikumar M
Date - 5 February 2020
Description - Program to avoid a child process becoming a zombie withour blocking the parent process
*/
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/wait.h>
int main()
{
pid_t pid;
int status... | 1,329,538 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include "token.c"
Node lexp(FILE *fp, Node token);
Node lexp_seq(FILE *fp, Node token);
Node lexp_seq1(FILE *fp, Node token);
Node aterm(FILE *fp, Node token);
Node list(FILE *fp, Node token);
int done=0, brack=0;
Node lexp_seq1(FILE *fp, Node token)
{
if(brack==1 && strcm... | 1,329,539 |
the-stack-v2-dedup | C | /*
Fontname: -Efont-Biwidth-Medium-R-Normal--12-120-75-75-P-60-ISO10646-1
Copyright: (c) Copyright 2000-2003 /efont/ The Electronic Font Open Laboratory.
Glyphs: 2223/22759
BBX Build Mode: 0
*/
#ifdef U8G2_USE_LARGE_FONTS
const uint8_t u8g2_font_b12_t_japanese2[62725] U8G2_FONT_SECTION("u8g2_font_b12_t_j... | 1,329,540 |
the-stack-v2-dedup | C | /***************************************************************************
mos tri port interface 6525
mos triple interface adapter 6523
peter.trauner@jk.uni-linz.ac.at
used in commodore b series
used in commodore c1551 floppy disk drive
**************************************************... | 1,329,541 |
the-stack-v2-dedup | C | /*
* Copyright (C) 2014 Fraunhofer ITWM
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY ... | 1,329,542 |
the-stack-v2-dedup | C | #include<stdio.h>
int main()
{
int a=10,b=20;
int c=a+b;
printf("i am in main\n");
printf("skjdksjds");
printf("jsdsjdsjd\n");
return 0;
}
| 1,329,543 |
the-stack-v2-dedup | C | #define _GNU_SOURCE
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdarg.h>
#include <dlfcn.h>
#include "ll.h"
#include "utils.h"
#include "libriot.h"
#include "mpi.h"
ll_list *list;
int cnt;
int maxcnt = 0;
int mpitrace = 0;
char *filename = NULL;
cha... | 1,329,544 |
the-stack-v2-dedup | C | #include "test.h"
#include "testutil.h"
#include "warnless.h"
#include "memdebug.h"
#define TEST_HANG_TIMEOUT 60 * 1000
int test(char *URL)
{
CURL *c = NULL;
CURLM *m = NULL;
int res = 0;
int running;
start_test_timing();
global_init(CURL_GLOBAL_ALL);
easy_init(c);
easy_setopt(... | 1,329,545 |
the-stack-v2-dedup | C | #ifndef HELPERS_H
#define HELPERS_H
/*
* Random - Generator of the pseudo-random "doubles"
*/
double Random( double x );
/*
* Check Courant number - Perfmorms check of a maximal Courant number for time-stepping stability reasons.
*/
void checkCoNum( void );
/*
* ARRAY3D - Memory allocation procedure (for flat memo... | 1,329,546 |
the-stack-v2-dedup | C |
#include "global.h"
#include "entity.h"
void PositionRelative(Entity *, Entity *, s32, s32);
void sub_0806FA24(Entity *param_1,Entity *param_2)
{
PositionRelative(param_1, param_2, 0, 0);
} | 1,329,547 |
the-stack-v2-dedup | C | /*
** interface_tools.c for PSU_2015_42sh in sources/ncurses
**
** Made by Nicolas Goudal
** Login <goudal_n@epitech.net>
**
** Started on Sun Jun 05 23:20:37 2016 Nicolas Goudal
** Last update Sun Jun 05 23:20:37 2016 Nicolas Goudal
*/
#include <stddef.h>
void the_pushfront(void **list, void *elem, int n)
{
*(... | 1,329,548 |
the-stack-v2-dedup | C | #include "lcd.h"
#include "font.h"
/************************************************************
底层函数集合
void WriteByteSPI(unsigned char byte) // 通过SPI发送数据(1Byte)
void SPI_WriteComm(u16 CMD) // 通过SPI发送指令(2Bytes)
void SPI_WriteData(u16 tem_data) // 通过SPI发送数据(2Bytes)
void BlockWrite... | 1,329,549 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <ncurses.h>
#include <unistd.h>
#include <signal.h>
#include <termios.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <dirent.h>
#include <malloc.h>
#include <limits.h>
void sig_winch(int signo){
struct winsize size;
ioctl(fil... | 1,329,550 |
the-stack-v2-dedup | C | // kadai 13
#include <stdio.h>
#include <stdlib.h>
int main(){
int a,b;
printf("二つの整数値を入力して下さい:\n");
scanf("%d", &a);
scanf("%d", &b);
printf("変数 x の値は%d, 変数yの値は%dです.\n", *&a, *&b);
void exchange(int *x, int *y){
int t = *x;
*x = *y;
*y = t;
printf("exchange()を呼び出した後の変数xの値は%d, 変数yの値は%dです.\n... | 1,329,551 |
the-stack-v2-dedup | C | #include <stdio.h>
int main(void)
{
enum state {false, true} flag;
char c;
puts("Input your text or press '#' to end");
while((c = getchar()) != '#') {
if (c == ' ' && !flag) {
putchar(c);
flag = true;
} else if (c == ' ' && flag)
continue;
else {
putchar(c);
flag = false;
}
}
return 0;
}... | 1,329,552 |
the-stack-v2-dedup | C | ../../../../DevPods/STSections/STSections/Classes/STGlobal/STURL.h | 1,329,553 |
the-stack-v2-dedup | C | #ifndef __CACHE_H__
#define __CACHE_H__
#include "nemu.h"
typedef struct {
int valid; // one-bit valid bit
uint32_t mark; // nineteen bits' mark bit
uint8_t data[64];
} Cache;
void init_cache();
uint32_t cache_read(paddr_t paddr, size_t len);
void cache_write(paddr_t paddr, size_t len, uint32... | 1,329,554 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "BF.h"
#include "Record.h"
int recordIsNull(Record rec)
{
if((rec.id==0)&&(strcmp(rec.name,"")==0)&&(strcmp(rec.surname,"")==0)&&(strcmp(rec.city,"")==0))
return 1;
else
return -1;
}
int checkRecord(Record rec, char* fieldName, ... | 1,329,555 |
the-stack-v2-dedup | C | #include <gd32f1x0.h>
#include "drv_pwm.h"
#include "defines.h"
#include "config.h"
#include "hardware.h"
#ifdef USE_PWM_DRIVER
TIMER_OCInitPara TIM_OCInitStructure;
// CHANGING THE H-BRIDGE CODE CAN RESULT IN CONNECTING THE FETs ACROSS THE BATTERY
// AND AS SUCH BRAKING THE BOARD
// CENTER ALIGNED PWM METHOD
/... | 1,329,556 |
the-stack-v2-dedup | C | // Copyright (c) 1997-2019 The CSE Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
// impf.h header for Import Files for CSE 2-94
// largest field number to accept (expect far fewer fields in a file)
const int FNRMAX = 1024;
// ... | 1,329,557 |
the-stack-v2-dedup | C | #include "cliente.h"
/*PROTOCOLO para la recepcion saludo de conexion
* ESI <-> PLANIFICADOR // COORDINADOR
* INT + CHAR* + INT
* INT: len del mensaje saludos
* CHAR*: mensaje saludo
* INT: id_esi que me da el planificador
* */
void saludo_inicial_servidor(int sockfd, char* nombre) {
//Recibo saludo
int numbyt... | 1,329,558 |
the-stack-v2-dedup | C | #include<stdio.h>
int main()
{
int x,y,tmp,sum,i;
while(scanf("%d%d",&x,&y)!=EOF)
{
tmp=y-x;
sum=0;
for(i=0;sum<tmp;i++)
sum+=i/2+1;
printf("%d\n",i);
}
return 0;
}
| 1,329,559 |
the-stack-v2-dedup | C | #include <stdio.h>
int main() {
int x = 5;
int *y;
y = &x;
printf("tamanho x: %d; tamanho y: %d", sizeof(x), sizeof(y));
return 0;
}
| 1,329,560 |
the-stack-v2-dedup | C | #include <eventpipe/ep.h>
#include <eventpipe/ep-config.h>
#include <eventpipe/ep-event.h>
#include <eventpipe/ep-event-instance.h>
#include <eventpipe/ep-file.h>
#include <eglib/test/test.h>
#define TEST_PROVIDER_NAME "MyTestProvider"
#define TEST_FILE "./ep_test_create_file.txt"
static RESULT
test_create_file (Even... | 1,329,561 |
the-stack-v2-dedup | C | #include "old_cuts.h"
#include "settings.h"
#include "interface.h"
#include <iostream>
#include <math.h>
double cuts::getEtMiss(double p3[4], double p4[4]){
double EtMiss = 0.;
if (opts.nproc == 1)
EtMiss = getPt(p3);
else if (opts.nproc == 2)
EtMiss = getPt(p4);
return EtMiss;
}
double cuts::getLPt(... | 1,329,562 |
the-stack-v2-dedup | C | /*
* File: nvm_block_cfg.h
* Author: zlatko
*
* Created on March 18, 2018, 6:57 PM
*/
#ifdef NVM_BLOCK
// ID len RAM ROM EEP addr
NVM_BLOCK(NVM_NWDATA, NWDATA_LEN, &RAM_NWID[0], &ROM_NWID[0] , NWDATA_ADDR,0)
#else
#define NWDATA_LEN 5
#define NWDATA_ADDR 0x... | 1,329,563 |
the-stack-v2-dedup | C | #include <stdio.h>
typedef struct C {
int x;
void (*increment)(struct C*);
int (*get)(const struct C*);
} C;
void f1(C* c) {
c->x++;
}
int f2(const C* c) {
return c->x;
}
void init(C* c) {
c->x = 0;
c->increment = &f1;
c->get = &f2;
}
C constructor() {
C c = {
.x = 0,
... | 1,329,564 |
the-stack-v2-dedup | C |
/*
card-ad1816a.c - driver for ADI SoundPort AD1816A based soundcards.
Copyright (C) 2000 by Massimo Piccioni <dafastidio@libero.it>
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 Foundatio... | 1,329,565 |
the-stack-v2-dedup | C | /*
* The Clear BSD License
* Copyright (c) 2017, NXP
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted (subject to the limitations in the disclaimer below) provided
* that the following conditions are met:
*
* o Redistributions of so... | 1,329,566 |
the-stack-v2-dedup | C | /*
* SerialMenu.h
*
* Created on: 19/03/2017
* Author: Alejandra Meza
*/
#ifndef SOURCE_SERIALMENU_H_
#define SOURCE_SERIALMENU_H_
#include "pin_mux.h"
#include "clock_config.h"
#include "fsl_debug_console.h"
#include "board.h"
#include "UART.h"
#include "GlobalFunctions.h"
#include "LCDNokia5110.h"
#inclu... | 1,329,567 |
the-stack-v2-dedup | C | const String devSetPage = R"a(<!DOCTYPE html>
<html>
<head>
<meta http-equiv="cache-control" content="no-cache" />
<title>Temperature Station</title>
<style>table,th,td {border: 1px solid black;
text-align: center}
</style>
</head>
<body onload="loadSettings()">
<a href="/"><button>Stron... | 1,329,568 |
the-stack-v2-dedup | C | //! @file
//!
//! Copyright (c) Memfault, Inc.
//! See License.txt for details
//!
//! @brief
//! Minimal shell/console implementation for platforms that do not include one.
//! NOTE: For simplicity, ANSI escape sequences are not dealt with!
#include "memfault/demo/shell.h"
#include "memfault_demo_shell_commands.h"
#... | 1,329,569 |
the-stack-v2-dedup | C | #include "StructLibrary.h"
#include "ArrayDinLibrary.h"
#include "ArrayStatLibrary.h"
#include <stdlib.h>
#include <stdio.h>
int main()
{
int scelta;
for(;;)//ciclo for per permettere all'utente di decidere quale tipologia di lista utilizzare
{
system("cls"); //cancello l'output visualizzato
... | 1,329,570 |
the-stack-v2-dedup | C | /*
Simple keyboard layout indicator (very small window).
Thanks to everyone for their help and code examples.
Andrey Shashanov (2019)
gcc -O2 -s -lX11 -lXft `pkg-config --cflags freetype2` -o kblayout kblayout.c
*/
#include <ctype.h>
#include <X11/Xft/Xft.h>
#include <X11/XKBlib.h>
#define WIN_POSITION_X 600
#define ... | 1,329,571 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#define pprintf(format, ...) printf ("[PID %d] " format, getpid(), ##__VA_ARGS__)
int i = 5;
int main (int argc, char *argv[])
{
pid_t pid;
pid = fork ();
if (pid) { // father
pprintf ("Parent: i = %d\n", i);
i = 6;
sleep (2);
pprintf ... | 1,329,572 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* parser_links.c :+: :+: :+: ... | 1,329,573 |
the-stack-v2-dedup | C | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | 1,329,574 |
the-stack-v2-dedup | C | /*
* $XConsortium: access.c,v 1.13 92/04/21 11:33:37 gildea Exp $
*
* Copyright 1990 Massachusetts Institute of Technology
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appe... | 1,329,575 |
the-stack-v2-dedup | C | //#include ..\misc\batchsql.cmt
#include <xsqlmods.h>
#define SOURCE_GROUP XSQLDBMS_DLL
#define SOURCE_MODULE BATCHSQL_C
#define INCL_DOSPROCESS
#define INCL_DOSNMPIPES
#define INCL_16DOSNMPIPES
#define INCL_DOSERRORS
#define XSQL_OS2... | 1,329,576 |
the-stack-v2-dedup | C | /*
* File: parametros-simulacao.h
* Author: braully
*
* Created on 14 de Dezembro de 2014, 00:00
*/
#ifndef PARAMETROS_SIMULACAO_H
#define PARAMETROS_SIMULACAO_H
#include "tipo/Tempo.h"
//parametros
bool detalhar = false;
bool detalharCadaMinuto = false;
bool detalharCadaSegundo = false;
bool lerParametrosE... | 1,329,577 |
the-stack-v2-dedup | C | /home/action/.parts/packages/postgresql/9.2.4/include/server/foreign/foreign.h | 1,329,578 |
the-stack-v2-dedup | C | // My program works for all processes
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#define MAXTIME 900 // unit : second
typedef struct
{
int level ;
int benefit ;
int weight ;
float bound ;
} Node ;
typedef struct
{
Node *queue ;
int size ;
} Nqueue ;
Nqueue q ; // make ... | 1,329,579 |
the-stack-v2-dedup | C | #include "IDManager.h"
#include "LCDGraphics.h"
ComponentType types[NumberOfComponents];
int latestId = 0;
unsigned int Register(ComponentType t)
{
unsigned int id = latestId;
types[id] = t;
latestId++;
return id;
}
ComponentType GetComponent(unsigned int id)
{
return types[id];
}
| 1,329,580 |
the-stack-v2-dedup | C | #pragma once
bool isInsideOfMatrix(int x, int y, int width, int heigth);
int getLengthOfFieldPointer(int x, int y, int width, int heigth);
int **getNearFields(int x, int y, int width, int heigth);
| 1,329,581 |
the-stack-v2-dedup | C | /* The hours run clock in the power cabinet of the Elliott 803 emulator.
Copyright © 2019 Peter Onon
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 3 of the License,... | 1,329,582 |
the-stack-v2-dedup | C | #include <stdlib.h>
#include <string.h>
#include <math.h>
#if __cplusplus
# include <complex>
#else
# include <complex.h>
#endif
#if defined(__GNUC__) || defined(__GNUG__)
#ifndef CMPLX
#define CMPLX(x, y) ((double _Complex)((double)(x) + _Imaginary_I * (double)(y)))
#endif
#elif defined(_MSC_VER)
#ifndef CMPLX
#d... | 1,329,583 |
the-stack-v2-dedup | C | /**
* Implementació en C de la pràctica, per a què tingueu una
* versió funcional en alt nivell de totes les funcions que heu
* d'implementar en assemblador.
* Des d'aquest codi es fan les crides a les subrutines de assemblador.
* AQUEST CODI NO ES POT MODIFICAR I NO S'HA DE LLIURAR.
**/
#include <stdio.h>
#i... | 1,329,584 |
the-stack-v2-dedup | C |
/*++
Copyright (c) 1989 Microsoft Corporation
Module Name:
StffTest.c
Abstract:
Author:
Joe Linn [JoeLinn] 3-20-95
Revision History:
--*/
#include "precomp.h"
#pragma hdrstop
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef ALLOC_PRAGMA
#pragma al... | 1,329,585 |
the-stack-v2-dedup | C | #include "include_all.h"
struct ListNode* reverseKGroup(struct ListNode* head_p, int k) {
struct ListNode *hp, **pre_pp = &hp;
while (1) {
struct ListNode* tail_p = head_p;
int i = 1;
while (1) {
if (tail_p == NULL) {
*pre_pp = head_p;
return hp;
} else if (i == k) {
break;
}
tail_p = t... | 1,329,586 |
the-stack-v2-dedup | C | /*
* ******************************************************************************
* Copyright (c) 2019-2021 Lijun.Cui
* All rights reserved.
*
* Created on: 06/29/2021
* Author: Lijun.Cui
* mail: cljun08@163.com
* ******************************************************************************
*/
#if... | 1,329,587 |
the-stack-v2-dedup | C | #include <stdio.h>
int test_b(void) {
printf("[ This is B ]\n");
return 0;
}
| 1,329,588 |
the-stack-v2-dedup | C | /*
* A streaming version of fastq pair. This uses slightly less than 1/3 the space of the previous version.
*
* Essentially, we have two improvements:
* 1. We add a flag to the struct fastq to tell whether it has been printed already, so we only need an additional int there
* 2. We only store the sequence inform... | 1,329,589 |
the-stack-v2-dedup | C | #pragma once
//#define muSIMD_FloatToHalf
//#define muSIMD_HalfToFloat
//#define muSIMD_InvertX3
//#define muSIMD_InvertX4
//#define muSIMD_Scale
#define muSIMD_Normalize
//#define muSIMD_Lerp
#define muSIMD_NearEqual
#define muSIMD_MinMax2
//#define muSIMD_MinMax3
//#define muSIMD_MulVectors3
//#de... | 1,329,590 |
the-stack-v2-dedup | C | //
// Constants.h
// yunmei.967067
//
// Created by bevin chen on 12-11-13.
// Copyright (c) 2012年 bevin chen. All rights reserved.
//
#define API_KEY @"6c1145af6d808835b2ce5b95c89ada67"
#define API_HOSTNAME @"api.mobile.maimaicha.com"
#define API_BASEURL @"api"
#define API_METHOD @"POST"
#def... | 1,329,591 |
the-stack-v2-dedup | C | /*****************************************************************************
*
* NXP Confidential Proprietary
*
* (C) Copyright CogniVue Corporation. 2011-2014 All right reserved.
* Copyright (c) 2014-2016 Freescale Semiconductor
* Copyright 2017 NXP
* All Rights Reserved
*
*****************************************... | 1,329,592 |
the-stack-v2-dedup | C | // "bim2bin"
// Copyright(C) 2004 H.Kawai
// usage : bim2bin [malloc:#] [mmarea:#] in:(path) out:(path)
// [-bim | -exe512 | -bin0 | -data | -restore | -osacmp] [-simple | -l2d3 | -tek0 | -tek1 | -tek2]
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define NOWARN 1
#define TEK1_NOWARN 1
... | 1,329,593 |
the-stack-v2-dedup | C | #ifndef HANDLERIP_H
#define HANDLERIP_H
#include <stdint.h>
extern "C"
{
#include "swo.h"
}
#define TRANSACT_ID 0x5E933D4C
char ParseOfferDHCP(uint8_t *date, uint16_t len);
char ParseAckDHCP(uint8_t *date, uint16_t len);
char ParseARP(uint8_t *date, uint16_t len);
char ParseDNS(uint8_t *date, uint16_t len);
#e... | 1,329,594 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memcpy.c :+: :+: :+: ... | 1,329,595 |
the-stack-v2-dedup | C | /* Author: Kenny Dai
* Partner(s) Name:
* Lab Section: 024
* Assignment: Lab #14 Exercise #1
* Exercise Description: [optional - include for your own benefit]
* Follower
* I acknowledge all content contained herein, excluding template or example
* code, is my own original work.
*/
#include <avr/io.h>
#inclu... | 1,329,596 |
the-stack-v2-dedup | C | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | 1,329,597 |
the-stack-v2-dedup | C | /* $NetBSD: getmntinfo.c,v 1.4 2004/07/27 01:50:35 enami Exp $ */
#include <sys/param.h>
#include <sys/ucred.h>
#include <sys/mount.h>
#include <err.h>
#include <stdlib.h>
#include <string.h>
#define KB * 1024
#define MB * 1024 KB
#define GB * 1024 MB
static struct statvfs *getnewstatvfs(void);
static void other... | 1,329,598 |
the-stack-v2-dedup | C | /***************************************************************************************************
Notes:
***************************************************************************************************/
#include "JTAG_UART.h"
#include "Interrupts.h"
void put_jtag( char c )
{
volatile int * JTAG_UART_... | 1,329,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.