text
stringlengths
9
5.83M
/* SPDX-License-Identifier: BSD-2-Clause */ /*********************************************************************** * Copyright (c) 2015 - 2017, Intel Corporation * * All rights reserved. ***********************************************************************/ #ifdef HAVE_CONFIG_H #include <config.h> #endif #inc...
#include <stdio.h> #include <windows.h> #include <io.h> #include <string.h> #include <stdlib.h> void switcher(char *); void Welcome(); void ShowMusic(char *); void PauseMusic(); void StopMusic(); void GetDir(); char fileNames[MAX_PATH][MAX_PATH]; char dir[MAX_PATH]; int _sign=-1; char ispaused=0; ...
typedef struct { SPFLOAT a, dur, b; SPFLOAT val, incr; uint32_t sdur, stime; int init; } sp_expon; int sp_expon_create(sp_expon **p); int sp_expon_destroy(sp_expon **p); int sp_expon_init(sp_data *sp, sp_expon *p); int sp_expon_compute(sp_data *sp, sp_expon *p, SPFLOAT *in, SPFLOAT *out);
// @brief : Some helper functions I use here and there // @author : Hua Huang <huangh223@gatech.edu> // @modified : 2022-01-19 #ifndef __HUANGH223_UTILS_H__ #define __HUANGH223_UTILS_H__ #include <stdio.h> #ifdef __cplusplus #include <cassert> #else #include <assert.h> #endif #ifdef __cplusplus ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* check.c :+: :+: :+: ...
#include <common.h> #include <command.h> #include <linux/types.h> #include <linux/string.h> #include <linux/ctype.h> #include <stdarg.h> #include <stdbool.h> #include <u-boot/md5.h> #define SYS_RESET "reset" /* perform RESET of the CPU */ #define USB_RESET "usb rese...
#define Home 1000 #define s_flammap_crown 1070 #define s_flammap_wind 1074 #define s_flammap_fm 1079 #define AboutIFTDSS 1001 #define Disclaimer 1002 #define KnownIssues 1003 #define WhatsNew 1004 #define EstLiveFuelMoisture 1013 #define FBFMFuelMoistures 1014 #define FBFMHeatValues 1015 #define IFTDSSInputs 1016 #defi...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <assert.h> // Структура для хранения узла дерева. typedef struct node { int value; struct node *left; struct node *right; struct node *parent; } node; // Структура для хранения дерева. typedef struct tree { struct node *tmp; ...
main printf("Hello");
#include <std.h> #include <amun.h> inherit ROOM; void create() { ::create(); set_no_clean(1); set_short("SKY TEMPLE'S WEAPON SUPPLY"); set_long("This is the storage room where weapons are kept."); set_exits((["northeast" : SKYROOM "weapon_shop"]) ); new(SKYWEP "ivory_scepter")->move(this_object(...
/* Copyright (C) Chris Nisbet - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly * prohibited. Proprietary and confidential. Written by Chris * Nisbet <nisbet@ihug.co.nz>, April 2016. */ #include "readline.h" #include "directory.h" #include "split_path.h" #include "utils.h" #i...
/********************************************************************************************************* ** ** 中国软件开源组织 ** ** 嵌入式实时操作系统 ** ** SylixOS(TM) LW : long wing ** ** Copyright Al...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strrchr.c :+: :+: :+: ...
#include "funcmatrices.h" // HECHO POR SANTIAGO MENENDEZ int main() { int Mat[100][100]= {}; int fila1,fila2,col1,col2,eleccion; int Mat2[100][100]= {}; printf("\n\n\n\n Programa para calcular matrices:\n Hecho por Santiago Menendez\n\n\n\n"); PAUSA; LIMPIAR; p...
/************************************************************************ ** ** GSC-18128-1, "Core Flight Executive Version 6.7" ** ** Copyright (c) 2006-2019 United States Government as represented by ** the Administrator of the National Aeronautics and Space Administration. ** All Rights Reserved....
// Coded by Whit #include <std.h> inherit MONSTER; void create() { ::create(); set_name("wolf"); set_short("a small wolf"); set_long("This is a small timber wolf. It looks to be very young."); if(random(2)) set_gender("male"); set_id(({ "wolf" })); set_level(36); set("race", "canine"); set_body_type("canine"); } ...
void sleep(int i) { TTime t,t2; GetDateTime(0,&t); while(i) { GetDateTime(0,&t2); if(t2.sec!=t.sec) { i--; t=t2; } } }
#ifndef _SECRET_BASE_EXPORT_CONFIG_H_ #define _SECRET_BASE_EXPORT_CONFIG_H_ // 下列 ifdef 块是创建使从 DLL 导出更简单的 // 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 ALSECRETBASE_EXPORTS // 符号编译的。在使用此 DLL 的 // 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将 // ALSECRETBASE_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的 // 符号视为是被导出的。 #ifdef ALSECRETBASE_EXPORTS #def...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <getopt.h> // getopt_long() #include <unistd.h> // access() #include <dirent.h> // opendir() // This struct value manages if functions of DBES are execute. struct option_arguments { // If user wants each function, value of the function flag is 1...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* arg_read.c :+: :+: :+: ...
#include <stdio.h> #include "csapp.h" /* Recommended max cache and object sizes */ #define MAX_CACHE_SIZE 1049000 #define MAX_OBJECT_SIZE 102400 static const char *user_agent_hdr = "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120305 Firefox/10.0.3\r\n"; // buffer area for web struct buffer_block...
//! \file Linkdef.h //! \brief Tells CINT to generate dictionaries for our classes. #ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ nestedclasses; #pragma link C++ namespace rb; #pragma link C++ namespace rb::data; #pragma link C++ n...
// // Created by jemy on 27/09/2017. // #ifndef OPENCVLEARN_EXAMPLES_H #define OPENCVLEARN_EXAMPLES_H #include <opencv2/opencv.hpp> #include <time.h> void ex1_show_image(); void ex2_play_video(); void ex2_play_video_capture(); void ex3_play_control(); void ex4_image_gaussian(); void ex4_play_video_gaussian(); void e...
#define LOCKED 0 #define UNLOCKED 1 typedef struct thread_spinlock{ //Lock's owner thread pid pid_t pid; //Lock state int lock_state; int flag; }thread_spinlock; int thread_spin_init(thread_spinlock *lock); int thread_spin_destroy(thread_spinlock *lock); int thread_spin_lock(thread_spinlock *...
#include<stdio.h> int main() { int n=0; scanf("%d",&n); printf("%d",recc(n,0,0)); } int recc(int x,int i,int f) { if(x<10) { return x+i; } else { int c= x%10; x=x/10; if(f==0) { i=c; x=x/10; f=1; } ...
/* SPDX-License-Identifier: BSD-2-Clause */ /******************************************************************************* * Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG * All rights reserved. *******************************************************************************/ #ifdef HAVE...
#include <discastle.h> inherit WEAPON; create() { ::create(); set_id(({"dagger","gold dagger","knife"})); set_name("gold dagger"); set_short("%^ORANGE%^Gold Dagger"); set_long("This looks more for ornate purposes then a weapon. But it'll do in a pinch."); set_weight(22); set_curr_value("gold",100+random(40)); ...
/* * This is dvips, a freely redistributable PostScript driver * for dvi files. It is (C) Copyright 1986-94 by Tomas Rokicki. * You may modify and use this program to your heart's content, * so long as you send modifications to Tomas Rokicki. It can * be included in any distribution, commercial or othe...
/*********************************************************************** * * File: linux/kernel/drivers/stm/coredisplay/stx7100_7109_5202/stx7109c3.c * Copyright (c) 2007,2010 STMicroelectronics Limited. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYIN...
#include <string.h> #include "astri_utili.h" // "osdb:contain" uint32 split_conta(char *osdb, char *conta, char *osdb_conta) { char *toke; if ((toke = strchr(osdb_conta, ':'))) { toke[0x00] = '\0'; strcpy(osdb, osdb_conta); strcpy(conta, ++toke); } else return -1; // retur...
#include "Q_methods.h" #include "Q_solution.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #define MAX_LINE_LENGTH 256 void initSent(Sentinel** S) { *S = (Sentinel*)malloc(sizeof(Sentinel)); //Queue init (*S)->Qhead = NULL; (*S)->Qtail = NULL; //Time list init (*S)->Thead = NULL;...
/* FILE NAME: GOBJ.C * PROGRAMMER: VG4 * DATE: 14.06.2013 * PURPOSE: Geometry object handle. */ #include <stdio.h> #include <stdlib.h> #include "anim.h" /* Глобальный идентификатор программы - шейдера для примитивов с материалами */ static UINT VG4_GeomShadProgId = 0; /* Функция удаления геометрического объекта...
#include <jni.h> #include <unistd.h> #include <string.h> #include <ph_NxpBuild.h> #include <ph_Status.h> #include <phhalHw.h> #include <phbalReg.h> #include <phpalSli15693.h> #include <phalI15693.h> #include "android/log.h" extern const char *JNI_TAG_15693; extern const char *JNI_CLASS_15693; #define LOGI(fmt, args.....
void fit_mjj_Full_PFNo31dDijet2017bgDeepCSV1bM() { //=========Macro generated from canvas: c/c //========= (Tue Mar 19 21:01:12 2019) by ROOT version6.02/05 TCanvas *c = new TCanvas("c", "c",0,0,600,700); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c->SetHighLightColor(2); c->Range(0,0,1,1); c->Se...
/** * fido/opus style message base support functions for msged * released into the PUBLIC DOMAIN 30 jul 1990 by jim nutt **/ #define CHUNKSZ 10 #define TEXTLEN 96 #define BUFLEN 4096 #if defined(__MSC__) || defined(__TURBOC__) #include <sys\types.h> #include <fcntl.h> #endif #include <sys\stat.h>...
/* * The MIT License (MIT) * Copyright (c) 2018 Novel Bits * * 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...
#ifndef GET_NEXT_LINE_H #define GET_NEXT_LINE_H #define BUFFER_SIZE 1000 #include <unistd.h> #include <fcntl.h> #include "get_next_line_utils.c" char *ft_strjoin(char const *s1, char const *s2); char *ft_strdup(const char *s1); char *ft_strchr(const char *s, int c); size_t ft_strlen(const char *s); void *ft_memmove(...
#ifndef STRUCT_UTILS #define STUCT_UTILS Tuple createTuple(float _x, float _y, float _z){ struct Tuple myTuple; myTuple.x = _x; myTuple.y = _y; myTuple.z = _z; return myTuple; } #endif
/** @file * Funkcja main modułu udostępniającego operacje na numerach telefonów przez interfejs tekstowy * * @author Magdalena Augustyńska <ma370723@mimuw.edu.pl> * @date 01.06.2018 */ #include <stdlib.h> #include "base.h" #include "parser.h" /** @brief Przeprowadza program. * Czyta dane ze standardowego wejśc...
#include <stdio.h> main() { /* vars */ int A[4][4], B[4][4], SOMA[4][4], i, j; printf("SOMA DE DUAS MATRIZES A+B\n"); /* Entradas */ for (i = 0; i < 4; i++) { for (j = 0; j < 4; j++) { printf("Insira A[%d][%d]: ", i, j); scanf("%d", &A[i][j]); } } ...
#pragma once void merge_sort(int *array, size_t size);
#include <stdio.h> #include <math.h> #include "check_prime.h" int find_square_root(int num) { return (int)sqrt((double)num); } void main () { int *array, length, ctr, maxprime; for (ctr=0; ctr<length; ++ctr) { if (isprime(array[ctr])) { } } }
char shell4Data[] = { 0x05, 0xFF, 0xFF, 0xFF, 0xE0, 0x05, 0xFF, 0xFF, 0xFF, 0xE0, 0x05, 0xFF, 0xFF, 0xFE, 0x00, 0x05, 0xFF, 0xFF, 0xFE, 0x00, 0x05, 0xFF, 0xFF, 0xE0, 0x00, 0x05, 0xFF, 0xEE, 0x00, 0x00, 0x05, 0xEE, 0x00, 0x00, 0x00, 0x01, 0x05, 0xFF, 0xFF, 0xFF, 0xE0, 0x05, 0xFF, 0xFF, 0xFE, 0x00, 0x05, 0xFF, 0xF...
#include <stdio.h> #include <stdlib.h> #include <memory.h> #include <endian.h> #include <dirent.h> #include <string.h> #include <limits.h> #include <time.h> #include <assert.h> #include <unistd.h> #include <argp.h> #include "util.h" #include "pak.h" const char* argp_program_version = "Pak Creator 0.1"; const char* a...
#include "t2fs_internal.h" #include <string.h> int readdir2 (DIR2 handle, DIRENT2 *dentry) { t2fs_init(); // checa se handle é válido if( handle < 0 || handle >= MAXIMUM_OPEN_DIRS ) { return -1; } // checa se posição é usada if( t2fs_open_directories[handle].directory_cluster_data == NULL ) { return -1; ...
const uint8_t Cooper10pt8bBitmaps[] PROGMEM = { 0x77, 0xFF, 0xFF, 0xFD, 0xCE, 0x00, 0x1D, 0xFF, 0xB8, 0x73, 0xBF, 0xFF, 0xFF, 0xFF, 0xFF, 0xDC, 0xE7, 0x38, 0x13, 0x0D, 0x84, 0x82, 0x4F, 0xF9, 0xB0, 0xD9, 0xFF, 0x24, 0x12, 0x19, 0x0D, 0x80, 0x0C, 0x01, 0x80, 0xFF, 0x3F, 0xFF, 0x8F, 0xF0, 0xFF, 0xC3, 0xFE, 0x7F, ...
/* * nGramReader.h * @authors: Fabian Angelstorf, Franziska Juckel * @copyright: Horst Goertz Institute for IT-Security, Ruhr-University Bochum * * Provides functions to read nGram and the according configuration from files * under the given filenames and store them in the given arrays. * */ #ifndef NGRAMREADE...
#include "myqei.h" void Myqei_Init(void) { SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC); SysCtlPeripheralEnable(SYSCTL_PERIPH_QEI1); GPIOPinConfigure(GPIO_PC5_PHA1); GPIOPinConfigure(GPIO_PC6_PHB1); GPIOPinTypeQEI(GPIO_PORTC_BASE, GPIO_PIN_5 |GPIO_PIN_6); //使用A,B通道4个边沿计算位置 QEIConfigure(QEI1_BASE, (QEI_CONFIG...
#include "dd_triangle.h" #include "dd_context.h" #include "dd_dynamic_array.h" #include "dd_matrix.h" #define edge_func(p1x, p1y, p2x, p2y, px, py) ( (p2x -p1x) *(py -p1y) -(p2y -p1y) *(px -p1x) ) int get_min(int val1, int val2, int val3) { if (val1 < val2) { if (val1 < val3) { ...
#include "../btreep.h" //create new index node in file, returns 0 on fail, and 1 otherwise unsigned long btreep_index_create(BTREEP* btreep, unsigned long parent_file, int* keys, unsigned long* intervals, unsigned int num_keys){ if( !btreep || ( ( !keys || btreep_min_keys(btreep->t) > num_keys || num_keys > btreep_m...
/* * Copyright (C) 2010-2016 Marvell International Ltd. * Copyright (C) 2002-2010 Kinoma, Inc. * * 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....
#ifndef lint static char *sccsid = "@(#)ufs_gnodeops.c 1.13 (ULTRIX) 3/3/87"; #endif lint /************************************************************************ * * * Copyright (c) 1986 by * * Digital Equipment Corporation, Maynard, MA * * All rights reserved. * * * * This softwa...
#include <stdlib.h> #include <stdio.h> int main() { int op, a, b; printf("-- MINICURSO -- INTRODUCAO AO CONTROLE DE VERSAO C/ GIT -- \n\t -- CALCULADORA SIMPLES EM C -- "); printf("MENU -- \n\n\n 1 - SOMA \n 2 - SUBTRACAO \n 3 - MULTIPLICACAO \n 4 - DIVISAO \n\n DIGITE O NUMERO DA OPERACAO DESEJADA: "); scanf...
#include "wst.h" int main(int argc, char** argv) { if (argc < 2) { printf("Usage: build <filename.c> ...\n"); printf("Builds a number of c files using gcc with standard settings.\n"); printf("The executable will be named after the first c file.\n"); } char* executableName = ws...
#include <mythreads.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #define NUM_CUSTOMERS 10 pthread_mutex_t ticket_lock; pthread_mutex_t turn_lock; pthread_cond_t sync_cond; int ticket = 0; int display = 0; int serving = 0; void shelf(int ticket) { printf("se...
/*********************************************************************************************************** Super Game Boy emulation (for SNES/SFC) Copyright MESS Team. Visit http://mamedev.org for licensing and usage restrictions. TODO: almost everything, e.g. * implement gb_timer_callback * gb_io_r/w * add...
/* * Copyright (c) 2018 Xilinx, Inc. * SPDX-License-Identifier: Apache-2.0 */ #include <drivers/timer/system_timer.h> #include <sys_clock.h> #include "irq.h" #include "legacy_api.h" #define TIMER_FREQ CONFIG_SYS_CLOCK_TICKS_PER_SEC #if (CONFIG_XLNX_PSTTC_TIMER_INDEX == 0) #define TIMER_INPUT_CLKHZ DT_I...
/* Calculate the day number within the year for a given dd/mm/yy. */ #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int dd, mm, yyyy; int length_of_feb, daynum, month; printf("Enter date in dd/mm/yyyy format: ");if(scanf( "%d/%d/%d",&dd,&mm,&yyyy)!=3){printf("Invalid input\n") ;exit(EXIT_F...
/* * Copyright (C) 2019 GreenWaves Technologies * * 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 l...
#ifndef lint static char *sccsid = "@(#)pull_const.c 1.1 (ULTRIX) 1/8/85"; #endif lint /************************************************************************ * * * Copyright (c) 1984 by * * Digital Equipment Corporation, Maynard, MA * * All rights reserved. * * * * This software ...
/********************************************************************************************************* ** ** 中国软件开源组织 ** ** 嵌入式实时操作系统 ** ** SylixOS(TM) LW : long wing ** ** Copyright Al...
#include "shared-bindings/board/__init__.h" STATIC const mp_rom_map_elem_t board_module_globals_table[] = { CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS { MP_ROM_QSTR(MP_QSTR_P0_02), MP_ROM_PTR(&pin_P0_02) }, { MP_ROM_QSTR(MP_QSTR_P0_04), MP_ROM_PTR(&pin_P0_04) }, { MP_ROM_QSTR(MP_QSTR_P0_05), MP_ROM_PTR(&...
// // PNCMBConfig.h // PNCMobileBank // // Created by 张瑞 on 14-7-28. // Copyright (c) 2014年 张瑞. All rights reserved. // #ifndef PNCMobileBank_PNCMBConfig_h #define PNCMobileBank_PNCMBConfig_h /*! @header @abstract 关于项目打包配置信息 @discussion 在应用程序打包时,注意修改配置项参数 @author P&C @version 1.0.0 2012/...
#include <stdio.h> typedef struct posicao{ int x,y; }POSICAO; typedef struct direcao{ int x,y; }DIRECAO; typedef struct gato{ POSICAO posicao; DIRECAO direcao; }GATO; int moveGato(GATO *gato, POSICAO posicao_inferior, POSICAO posicao_superior){ if(gato->posicao.x + gato->direcao.x <= posicao_in...
#include<stdio.h> #include<stdlib.h> int n = 7; struct job { int job_id; int deadline; int profit; }job_list[7]; void sort(){ struct job temp; int i,j; for(i=0;i<n;i++){ for(j=i;j<n;j++){ if(job_list[i].profit<job_list[j].profit){ temp = job_list[i]; ...
/* * Copyright (C) 2018 GreenWaves Technologies * * 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 l...
/** * @file cmp_rdcu.c * @author Dominik Loidolt (dominik.loidolt@univie.ac.at) * @date 2019 * * @copyright GPLv2 * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Found...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <syslog.h> #include <fcntl.h> #include <sys/resource.h> #include <sys/types.h> #include <wait.h> #include<grp.h> #include <pwd.h> #include "epoll_serv.h" #include "hand_epoll.h" #include "process_cycle.h" // void worker_process_...
/** @file @ingroup cudd @brief Functions to manipulate the variable interaction matrix. @details The interaction matrix tells whether two variables are both in the support of some function of the %DD. The main use of the interaction matrix is in the in-place swapping. Indeed, if two variables do not in...
#include "thread.h" int thread_count = 1; long retvalue_array[MAX_THREADS]; static int islock = 0; Node *head; //Wrapper function around user start_routine function int thread_startroutine_execute(void *new_thread){ lock(&islock); //getting return value from function ((thread_tcb*)new_thread)->return_va...
//serial commucation function gumstix to nios #include "GMsg.h" /*--------------------------------------------------- function: setPos usage: set new position in incremental or absolute way Attention: ACK_ON switch ----------------------------------------------------*/ int setPos (SerialConn *conn, unsigned char cmd, ...
#include <rune.h> int utf8_runes(char *u){ int n, i = 0; for(;*u!=0;u+=n){ n = utf8_size(u); if(n < 1) return -1; i++; } return i; }
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * SPDX-FileCopyrightText: Copyright (c) 2013, 2014 Damien P. George * SPDX-FileCopyrightText: Copyright (c) 2015 Daniel Campora * * Permission is hereby granted, free of charge, to any person obtaining a copy ...
/* Configuration settings */ #ifndef CONFIG_H #define CONFIG_H #include <chipmunk\chipmunk.h> #define TITLE "Space Ripoff" // Initial resolution #define START_RESOLUTION_X 800 #define START_RESOLUTION_Y 600 #define START_PIXEL_DEPTH 32 #define WORLD_DIMENSION_X = 1000 // kilometers #define WORLD_DIMENSION_Y = ...
wchar_t __attribute__((unused)) wcs1[] = L"Привет мир!"; wchar_t __attribute__((unused)) wcs2[] = L"Привет Мир!"; char __attribute__((unused)) cs1 [] = "Привет мир!"; char __attribute__((unused)) cs2 [] = "Привет Мир!";
// void strUpperCase(char str[]) #include <stdio.h> void strUpperCase(char str[]) { for ( int i = 0; str[i] != '\0'; i++ ) { if ( str[i] > 96 ) { str[i] -= 32; } } } // void strUpperCase(char str[]) { // for ( ; *str != '\0'; str++ ) { // if ( *str > 96 && *str < 123 )...
#include<stdio.h> void main() { int a=0,b=0,add,sub,mul,div,mod; scanf("%d",&a); scanf("%d",&b); add=a+b; sub=a-b; mul=a*b; div=a/b; mod=a%b; printf("%d %d %d %d %d",add,sub,mul,div,mod); }
/** ****************************************************************************** * @file trajectoryGenerator.h * @author Mace Robotics * @version V1.0 * @date 06/02/2016 * @brief trajectory Generator * *******************************************************************************/ #ifndef _T...
/***************************************************************************** Copyright 2016-2019 Broadcom Limited. All rights reserved. This program is the proprietary software of Broadcom Limited and/or its licensors, and may only be used, duplicated, modified or distributed pursuant to the terms and condition...
/* CalculiX - A 3-dimensional finite element program */ /* Copyright (C) 1998-2018 Guido Dhondt */ /* This program is free software; you can redistribute it and/or */ /* modify it under the terms of the GNU General Public License as */ /* pub...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
/* NOTE: retrieved from hardware testbench */ #include "ffc_test_utils.h" #include <stdio.h> #include <stdint.h> #include <math.h> #define FIX2FP(Val, Precision) ((double) (Val) / (double) (1<<(Precision))) #define FP2FIXR(Val, Precision) ((int) round((Val) * (long long int)((long long int)1<<(Preci...
/*---------------------------------------------------------------- * * Programación avanzada: Examen 3 * Fecha: 26-May-2020 * Autor: A01702828 - Jose carlos pacheco Sanchez * *--------------------------------------------------------------*/ #include "header.h" // PImero tengo que tener el de crear semaforos par...
#include <stdlib.h> #include <stdio.h> #include "TreeNode.h" int hasLeft(TreeNode * node) { return node->left!=0; } int hasRight(TreeNode * node) { return node->right!=0; } int numberOfChildren(TreeNode * node) { return hasLeft(node) + hasRight(node); } void destroyTree(TreeNode * node) { TreeNode * parent = no...
#include <stdio.h> #include <string.h> void main() { char t[200]; int sri = 0, i; printf("enter the string\n"); scanf("%[^\n]t",t); for (i = 0;t[i] != '\0';i++) { if (t[i] == ' ') sri++; } printf("number of words in given string are: %d\n", sri + 1); }
/* Generated by Nim Compiler v0.17.0 */ /* (c) 2017 Andreas Rumpf */ /* The generated code is subject to the original license. */ /* Compiled for: Linux, amd64, gcc */ /* Command for C compiler: gcc -c -w -O3 -fno-strict-aliasing -I/home/vlad/Nim/lib -o /home/vlad/Experiments/computer_graphics/software_renderers...
void fit_mjj_Full_PFNo10Dijet2016bbdeeple1b300() { //=========Macro generated from canvas: c/c //========= (Thu Dec 13 10:24:48 2018) by ROOT version6.02/05 TCanvas *c = new TCanvas("c", "c",0,0,600,700); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c->SetHighLightColor(2); c->Range(0,0,1,1); c->Se...
// Tzw. ,,blokowe'' algorytmy szyfrujące kodują jednocześnie całe bloki tekstu, znacznie dłuższe niż pojedyncze litery. // Napisać program szyfrujący oraz współpracujący z nim program odszyfrowujący, działające w następujący sposób: // wczytany tekst jest dzielony na grupy po 4 kolejne znaki; każda taka grupa szyfro...
/** * This file is part of the Zephir. * * (c) Phalcon Team <team@zephir-lang.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. If you did not receive * a copy of the license it is available through the world-wide-web at the * fol...
/*************************************************************************** IBM-PC printer interface ***************************************************************************/ #include "emu.h" #include "pc_lpt.h" /*************************************************************************** CENTRONICS INT...
// // Created by songzeceng on 2020/11/26. // #ifndef CUDADEMO_KERNEL_H #define CUDADEMO_KERNEL_H void ddParallel(float *out, float *in, int n, float h); #endif //CUDADEMO_KERNEL_H
/***************************************************************************** Copyright 2019 Broadcom Limited. All rights reserved. This program is the proprietary software of Broadcom Limited and/or its licensors, and may only be used, duplicated, modified or distributed pursuant to the terms and conditions of ...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <time.h> #include <mpi.h> #include "../../common/headers/io_utils.h" #include "../../common/headers/utils.h" #include "../headers/game_utils.h" #include "../headers/mpi_utils.h" extern program_options options; ...
#include <stdio.h> #include <string.h> #include "itu_network.h" //TODO //for better performance,the mcc table quiry algorithm should be changed. typedef struct mcc_table mcc_table; typedef struct mnc_table mnc_table; typedef struct itu_network itu_network; struct mcc_table { const char* mcc; short mnc_leng...
/* * Copyright (c) 2014-2015 André Erdmann <dywi@mailerd.de> * * Distributed under the terms of the MIT license. * (See LICENSE.MIT or http://opensource.org/licenses/MIT) */ #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include "magic_packet.h" #include "mac_addr.h" #include "../../mac.h" sta...
#include "dll.h" #include "dll_util.h" #include <stdlib.h> #include <string.h> #include <stdio.h> typedef struct node { int id; char name[32]; char data[256]; } node_t; static void print_node(node_t *node) { printf("id = %d\n", node->id); printf("name = %s\n", node->name); printf("data =...
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> int main() { int fd; fd = open("test.txt", O_CREAT|O_WRONLY, 0777); int fd2 = open("test.txt", O_RDONLY); fd = open("test.bin", O_CREAT|O_WRONLY, 0777); int x; for (x = 0; x < 10; x++) { printf("%d\n", x); write(fd, &x, sizeo...
/***************************************************************************** Copyright 2017-2018 Broadcom Limited. All rights reserved. This program is the proprietary software of Broadcom Limited and/or its licensors, and may only be used, duplicated, modified or distributed pursuant to the terms and condition...
#ifndef CONFIG_H #define CONFIG_H #include <stdbool.h> // the maximum length a value in the config file can take (some URLs may be long) #define MAX_CONFIG_VALUE_LENGTH (2084) // the maximum length a line in the config file can take #define MAX_CONFIG_LINE_LENGTH (MAX_CONFIG_VALUE_LENGTH + 100) // path to config f...
#ifndef USART_H_ #define USART_H_ #include "diag/Trace.h" #include "stm32f10x.h" #include "stm32f10x_gpio.h" #include "stm32f10x_rcc.h" #include "stm32f10x_usart.h" void usart_send(char* charBuffer, unsigned int count); void usart_init(void); #endif