text stringlengths 3.08k 10.5k |
|---|
/*****************************************************************************\
** **
** FILE: bbsd.h **
** AUTHORS: Alexios **
**... |
// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include <lib.h>
#include <memoryManager.h>
#include <console.h>
#include <strings.h>
#include <stack.h>
#include <scheduler.h>
#include <timelib.h>
#include <process.h>... |
#include "hazmat.h"
#include <stdio.h>
uint8_t test_lagrange_orthogonality(void);
uint8_t test_lagrange_zero_one_uniqueness(void);
uint8_t test_interpolation(void);
uint8_t test_simple_interpolation(void);
int16_t lagrange(
uint8_t n, // number of points to interpolate
uint8_t m, // index of this point
... |
/*
(c) Copyright 2012-2013 DirectFB integrated media GmbH
(c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<... |
#include <stdint.h>
#include <stdio.h>
#include "bump.c"
#include "free_list.c"
typedef struct {
char *data;
size_t length;
} string;
typedef struct {
char *data;
string token;
} lexer;
typedef struct bst_node {
struct bst_node *left, *right;
uint32_t value;
} bst_node;
uint32_t alder32(stri... |
/**
* Author: <NAME> (<EMAIL>)
*/
#include "code.h"
#include "utils.h"
static
uint32 get_constant_value (struct value *val)
{
if (val->type == VAL_SSAVAR)
return val->val.variable->value;
else
return val->val.intval;
}
static
void combine_constants (struct ssavar *out, struct value *val)
{
uint32 co... |
/* An implementation of the PROLAN/M programming language.
This software is public domain; anyone obtaining a copy may deal
in it without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, and/or sell this
software.
The author provides no warranty on... |
#define _POSIX_C_SOURCE 199309L
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <string.h>
#include <errno.h>
#include <X11/Xlib.h>
#define LA_IMPLEMENTATION
#include "la.h"
// #define PROF
#include "prof.c"
typedef uint32_t Pixel32;
static void fill_pixels_unsafe(Pixel32 *pix... |
#include "rtc.h"
int rtc_interrupt_occured;
//static int start_y = 1;
// void initialize_keyboard(void)
// This function initializes the rtc and enables the interrupt.
// Inputs: None
// Outputs: None
void initialize_rtc(void){
char prev_reg;
unsigned char rate = 0x0F; // must be above 2 and not over 15
... |
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <linux/limits.h>
#include "zdtmtst.h"
#define MEM_SIZE (1LU << 30)
#define MEM_OFFSET (1LU << 29)
#defi... |
/*
* Lab-Project-coreMQTT-Agent 201215
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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 restricti... |
#include "keyspacenote.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <pthread.h>
#include "../deps/hiredis/adapters/libevent.h"
#ifdef _EVENT_HAVE_PTHREADS
int evthread_use_pthreads(void);
#define EVTHREAD_USE_PTHREADS_IMPLEMENTED
#endif
void _connectSync(keyspaceNotifier ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "hardware/gpio.h"
#include "hardware/sync.h"
#include "hardware/structs/ioqspi.h"
#include "hardware/structs/sio.h"
#include "bsp/board.h"
#include "tusb.h"
#include "usb_descriptors.h"
//------------------------------------------------------------... |
#include "braille.h"
#include "scale.h"
/* Plotting to UTF-8 braille characters. */
static void init_rows(plot_info *pi);
static void draw_axes(plot_info *pi);
static void print_header(plot_info *pi, uint8_t columns);
static void plot_points(config *cfg, plot_info *pi, data_set *ds);
static void free_rows(plot_info ... |
#include <stdlib.h>
#include <string.h>
#include <gl4e.h>
//////////////////////////////////////////////////////////////////////////////////
static vec3 UP = { 0.0f, 1.0f, 0.0f }; // OpenGL: Y is up
static void frame_tick(World* w, double deltaTime)
{
Camera* c = w->camera;
mat4 proj, look;
mat4_perspective(&pro... |
//The source file of custom C library that provides the implementation of numerical set by bit-vectors
//Made by DanArmor
//https://github.com/DanArmor
#define __BITSET_LIB__ //Flag for compilation of library
/*
The list of possible flags:
** __BITSET_32__ //If you need to force 32-bit blocks of set
... |
/********************************************************
Authors:
<NAME>, <EMAIL>
<NAME>, <EMAIL>
<NAME> (DTNproxy project supervisor), <EMAIL>
License:
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... |
#include <stdint.h>
#include "mm.h"
#include "uart.h"
#include "task.h"
extern uint32_t ttb_address;
extern uint32_t ttb1_address;
#define PAGE_FLAG_AVAILABLE (1U << 0) /* a page available to be allocated */
/*
* Start: 0x70000000, LENGTH: 0x10000000
*/
#define PHYSICAL_START_FRAME (0x70000)
#define PHYSICAL_PA... |
/*
* Tencent is pleased to support the open source community by making TBase available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* TBase is licensed under the BSD 3-Clause License, except for the third-party component listed below.
*
* A copy of the BSD 3-Clause Li... |
/*
* Copyright © 2012-2015 VMware, Inc. 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
*
* Unless required by applic... |
/*
standard GLES2 renderer to sample and display
an RGB565, 2byte,16bitmap and show fullscreen
2019, 2020, masterzorag
*/
#include <stdlib.h> // calloc
#include <string.h> // memcpy, memset, strlen
#include <EGL/egl.h>
#include <GLES2/gl2.h>
#include "mySDL.h" // custom: minimal for the surface ref
#i... |
#include "core-int.h"
#include <stdint.h>
#include "image.h"
static
int virt2real(int pos, int offset, int overlap, int size)
{
int real = pos + offset - overlap;
if( real < 0 )
real *= -1;
if( real > size-1 )
real = 2*(size-1) - real;
return real;
}
static
int virt2real_error(int pos, int offset, int overl... |
/* kernel.c: Kernel with pre-emptive scheduler */
/* Do not change this file */
#include "common.h"
#include "interrupt.h"
#include "kernel.h"
#include "queue.h"
#include "scheduler.h"
#include "util.h"
#include "printf.h"
#include "printk.h"
#include "tasks.c"
#define NUM_PCBS (NUM_TASKS)
#define INITIAL_PRIOR... |
// Tool to calculate word-word cooccurrence statistics for sentence aligned
// corpus of 2 languages.
//
// Copyright (c) 2014 The Board of Trustees of
// The Leland Stanford Junior University. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file ... |
/*D************************************************************
* Modul: GUI - BM dialog btoggle.c
*
* Create DB mode toggles for BM menus
*
* Functions:
* Callbacks:
*
*
* ... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2019-2022 Intel Corporation.
*/
/*
jsonc2json a tool to help validate and convert json-c files.
*/
// IWYU pragma: no_include <bits/getopt_core.h>
#include <fcntl.h> // for open, O_RDONLY
#include <getopt.h> // for n... |
/*** pname.c - form a "pretty" version of a user file name
*
* OS/2 v1.2 and later will allow filenames to retain the case
* when created while still being case insensitive for all operations.
* This allows the user to create more visually appealing file names.
*
* All runtime routines should, therefore, preserve... |
#include "single.h"
void single_integrand(unsigned ndim, const double *x, void *params, unsigned fdim, double *fval) {
struct single_params myparams;
myparams = *(struct single_params *) params;
int integral = myparams.integral;
double rts = myparams.rts;
double m = myparams.mass;
double pT, mT, yp,... |
/*
This file is part of JellingStone - (C) The Fieldtracks Project
JellingStone is distributed under the civilian open source license (COSLi).
You should have received a copy of COSLi along with JellingStone.
If not, please contact <EMAIL>
*/
#include <string.h>
#include "esp_log.h"
#include "db.h"
#inclu... |
// Copyright (c) 2021 <NAME>
// All rights reserved
// https://www.st.com/resource/en/reference_manual/dm00124865-stm32f75xxx-and-stm32f74xxx-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdf
// Memory map: 2.2.2
#pragma once
#include "arch/common.h"
struct gpio {
volatile uint32_t MODER, OTYPER, OSPEEDR, PUPD... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <linux/ip.h>
#include <linux/icmp.h>
#include <string.h>
#include <unistd.h>
char dst_addr[20];
char src_addr[20];
unsigned short in_cksu... |
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <grp.h>
#include <netdb.h>
#include <pthread.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
/* Problem with FreeBSD 11.0 merely linking with -lrt. */
static void
pl_freebsd_link_lrt(void)... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <rxi_ini.h>
#include <gkylzero.h>
struct euler_ctx {
int cells[2]; // grid resolution
double tend; // time to run sim
int nframe; // number of frames to write
double gas_gamma; // gas constant
enum gkyl_wave_limi... |
/*
* Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <getopt.h>
#include <zlib.h>
#include "bntseq.h"
#include "bwt.h"
#include "utils.h"
#include "lamsa_index.h"
int lamsa_index_usage(void)
{
fprintf(stderr, "\n");
fprintf(stderr, "Usage: lamsa index <re... |
/* ebt_nflog
*
* Authors:
* <NAME> <<EMAIL>>
*
* February, 2008
*
* Based on:
* ebt_ulog.c, (C) 2004, <NAME> <<EMAIL>>
* libxt_NFLOG.c
*
* Adapted to libxtables for ebtables-compat in 2015 by
* <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <... |
/*
* vr_dpdk_conf.c - DPDK specific callback functions for dpdkconf CLI.
*
* Copyright (c) 2020 Juniper Networks, Inc. All rights reserved.
*/
#include <vr_os.h>
#include <vr_types.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include... |
/*
* Copyright (c) 2009 <NAME>
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <lk/debug.h>
#include <lk/err.h>
#include <lk/trace.h>
#include <stdlib.h>
#include <lib/bio.h>
#define LOCAL_TRACE 0
type... |
/*
* Copyright © 2016-2018 Broadcom
*
* 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, modify, merge, publish... |
/**
k-NN
Version by <NAME>
Email: <EMAIL>
April 2020
FEUP, Porto, Portugal
*/
#include "knn.h"
/*
Update the set of k best points so far.
Points represent instances in the kNN model.
Those instances are the ones used in a previous learning phase.
*/
void updateBest(dtype distance, ctype classifID, dtype ... |
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
* All rights reserved.
*
* %sccs.include.proprietary.c%
*
* @(#)vmparam.h 7.4 (Berkeley) 05/08/91
*/
/*
* Machine dependent constants for VAX
*/
/*
* USRTEXT is the start of the user text/data space, while USRSTACK
* is the top (end... |
#include "medialib.h"
#include "mytbf.h"
#include "server_conf.h"
#include <errno.h>
#include <fcntl.h>
#include <glob.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/syslog.h>
#include <sys/types.h>
#include <unistd.h>
struct channel_context_st {
chnid_t chnid;
... |
#include "service_lora_test.h"
#include <stddef.h>
#include <stdint.h>
#include "udrv_errno.h"
#include "udrv_serial.h"
#include "board_basic.h"
#include "service_nvm.h"
#include "LoRaMac.h"
#include "Region.h"
#include "radio.h"
#include "delay.h"
#include "timer.h"
#include "udrv_timer.h"
#include "LmhPackage.h"
#de... |
/**
* (i) O processo P0 cria o vetor com uma distribuição uniforme entre -1 e 2
* com o auxílio da função rand() inicializada previamente com a semente 551,
* cuja dimensão é dada como argumento na linha de comandos.
* (ii) Após a divisão e distribuição do vetor, cada processo deve calcular a
* soma parcial corres... |
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <unity/unity.h>
#include <az_status.h>
#include <az_bytearray.h>
void test_az_bytearray_init_normal(void)
{
size_t len = 4;
uint8_t data[4] = {0x01, 0x02, 0x03, 0x04};
az_bytearray_t bytearray;
az_status_t res = az_bytearray_init(... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <pthread.h>
#include <unistd.h>
#include "socket_manager.h"
#include "my_sock.h"
#include "unix_sock.h"
#include "config.h"
struct socket_entry {
int fd;
pthread_t thread;
struct socket_entry *p... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#define MAX_NAME_LEN 64
void usage(const char *pgm) {
const char *name = (pgm) ? pgm : "usage";
fprintf(stderr, "%s -i <raw> -o <rgb> -s '<w>x<d>'... |
/* Simulate a server with connections of different speeds. We count
* how many connections complete in 10 seconds. */
#include <ccan/io/io.h>
#include <ccan/time/time.h>
#include <ccan/err/err.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl... |
/* Wrapping KDTW similarity function with the Python-C-API. */
#include <Python.h>
#include <numpy/arrayobject.h>
#include <math.h>
/* ==== Square Euclidean Distance as local kernel ======================
*/
static double sqEuclidean(const double *a, const double *b, int dim){
double x, out=0.0;
for (int k=0; k<dim... |
#include <stdbool.h>
#include <string.h>
#include <ncurses.h>
#include "model/level.h"
#include "view/ncurses_colors.h"
#include "view/level_renderer.h"
#define MAP_WIDTH 40
#define MAP_HEIGHT 20
bool is_passable( int x, int y );
void show_inventory( void );
void get_command( void );
void drop_command( void );
void... |
/* This file is in the public domain. */
/*
* This file comes from mg1a.
* Uses the panic function from OpenBSD's mg.
*/
/*
* Ultrix-32 and Unix terminal I/O.
* The functions in this file
* negotiate with the operating system for
* keyboard characters, and write characters to
* the display in a barely buffer... |
/* @source tranalign application
**
** Align nucleic sequences guided by the alignment of the translation
**
** @author Copyright (C) <NAME> (<EMAIL>)
** @@
**
** 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 Soft... |
#include "ProxyUtil.h"
/**
* This is a set of helper functions used by the PROXY. After the Query is read
* the sendSubQToWorker function is used to send the respective sub-query to
* the node/machine.
*/
extern int debug_level;
int8_t *createFinalKeysMessage (Query *Q, int *message_len)
{
int8_t *message, *m;... |
#include <string.h>
#include <time.h>
#ifdef USE_OPENCL
#include "clhelper.h"
#endif
#ifdef USE_CUDA
#include "cudahelper.h"
#endif
#include "mnist.h"
#include "net.h"
#include "layers.h"
#include "log.h"
static idx_t *images = NULL;
static idx_t *labels = NULL;
static void feed_data(net_t *n)
{
fo... |
/******************************************************************************/
/* */
/* Copyright (c) International Business Machines Corp., 2008 */
/* ... |
/*
* Copyright (c) 2003 <NAME>
* Copyright (c) 2003 Massachusetts 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
* (at your ... |
/*
* drivers/net/wireless/bcmdhd_pcie/dhd_custom_tegra.c
*
* Copyright (C) 2014-2016 NVIDIA Corporation. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified u... |
/*
* embedded IPsec
* Copyright (c) 2003 <NAME> and <NAME>, HTI Biel/Bienne
* 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 ab... |
#include <stdbool.h>
#include "VOC.h"
#include "../Networking/TFTP.h"
#include "../Networking/IPv4.h"
#include "../Terminal.h"
#include "../misc.h"
#include "../Timers/PIT.h"
#include "../Timers/System_Clock.h"
#include "../Drivers/Sound_Blaster_16.h"
// Globals
// TEMPTEMP HACKHACK
uint8_t vocFile1[MAX_VOC_SIZE];
uin... |
#include<stdio.h>
#include<stdlib.h>
#include<setjmp.h>
#include<unistd.h>
//DATABASE
int PIN[6] = {1010,2020,3030,4040,5050,6060};
int CARD[6] = {111111,112211,113311,114411,115511,116611};
int AMOUNT[6] = {10000,50000,15000,7000,9000,10000};
int ACCTYP[6] = {1,1,1,2,3,1};
int WRONGLIMIT[6] = {0,0,0,0,0,0};... |
/*
* checkResolution.c
* ARToolKit5
*
* Check required resolution of texture data for a range of distances, given supplied camera parameters.
*
* This file is part of ARToolKit.
*
* ARToolKit is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public Lic... |
#include "stm32f30x.h"
#include <stm32f30x_rcc.h>
#include <stm32f30x_gpio.h>
#include <stm32f30x_usart.h>
#define LED GPIO_Pin_13
int flag=1;
unsigned char USART_Temp_Data;
/**************************************************************************************/
void GPIO_Config(void)
{
GPIO_InitTypeDef gpioB;
... |
/*
* clientPost.c: A very, very primitive HTTP client for sensor
*
* To run, prepare config-cp.txt and try:
* ./clientPost
*
* Sends one HTTP request to the specified HTTP server.
* Get the HTTP response.
*/
#include <wiringPi.h>
#include <stdint.h>
#include <stdio.h>
#include <pthread.h>
... |
/**
* Copyright (c) 2011 <EMAIL>
*
* 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, modify, merge, publish, d... |
/*
* 09_i2c_master_rx_testingIT.c
*
* Created on: 10-Dec-2019
* Author: ashwani
*/
#include<stdio.h>
#include<string.h>
#include "stm32f446xx.h"
//extern void initialise_monitor_handles();
#define MY_ADDR 0x61
#define SLAVE_ADDR 0x68
//Flag variable
uint8_t rxComplt = RESET;
I2C_Handle_t I2C1Han... |
/* * * * * * *
* Module for creating and manipulating singly-linked lists containing data
* of any type
*
* created for COMP20007 Design of Algorithms - Assignment 1, 2018
* by <NAME> <<EMAIL>>
*/
#include <stdlib.h>
#include <assert.h>
#include "list.h"
/* DO NOT CHANGE THIS FILE
*
*... |
/*
* This file is part of the bayou project.
*
* Copyright (C) 2008 Advanced Micro Devices, Inc.
*
* 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 distribu... |
/*
* The olsr.org Optimized Link-State Routing daemon (olsrd)
*
* Copyright (c) 2004, <NAME> (<EMAIL>)
* 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 ... |
/**
* PubSub Client Library tools
* subscribe to topic
*
* <NAME>
**/
/**
* Copyright 2001-2004 KnowNow, Inc. All rights reserved.
*
* @KNOWNOW_LICENSE_START@
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... |
/*
Copyright (c) 1993, 1994, 1998 The Open Group.
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 appear in all copies and that both that
copyright notice and this permission notice appear... |
//loop.c
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "loop.h"
#include "../warp.h"
#include "../log.h"
/**
* 将所有的eventConfig结构体追加到hash管理的链表中以便管理, 销毁
*/
static uint8_t hash;
static getHash_t getHash; //获得哈希值
static node_t **eventlist_head; //事件链表
//epoll_wait返回监听事件时的buf
stat... |
/*###############################################################################
* Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
*
* 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... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* draw.c :+: :+: :+: ... |
/* Copyright (c) 2011, onitake <<EMAIL>>
* 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 list of
* ... |
/*
*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* The contents of this file are provided under the Software License
* Agreement that you accepted before downloading this file.
*
* This source forms part of the Software and can be used for educational,
* training, and demonstration purpos... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/select.h>
#ifndef PORT
#define PORT 30000
#endif
#define MAX_BACKLOG 5
#define MAX_CONNECTIONS 12
#define BUF_SIZE 128
struct sockname {
int sock... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <stdint.h>
#include <string.h>
#include <linux/fb.h>
#include <sys/ioctl.h>
#define FILEPATH "/dev/fb1"
#define NUM_WORDS 64
#define FILESIZE (NUM_WORDS * sizeof(uin... |
/*
* @XMHF_LICENSE_HEADER_START@
*
* eXtensible, Modular Hypervisor Framework (XMHF)
* Copyright (c) 2009-2012 Carnegie Mellon University
* Copyright (c) 2010-2012 VDG Inc.
* All Rights Reserved.
*
* Developed by: XMHF Team
* Carnegie Mellon University / CyLab
* VDG Inc.
* ... |
#include <soundio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>
#include <intrin.h>
#include "gui_audio.h"
#include "mutex.h"
#include "constants.h"
#include "objects.h"
typedef struct _AudioBufferItem {
void *next;
AudioSample sample;
} Audio... |
/*Driver del teclado */
#include <keyboard.h>
KBLocks locks = {FALSE, FALSE, FALSE};
uint8_t shift_pressed = FALSE;
char readBuffer[BUFFER_SIZE] = {0};
//uint8_t READING = FALSE;
uint8_t EOF = FALSE;
uint16_t bufferPos = 0;
//deberia estar el typedef en el h y el resto aca.
KBCode code_table[256] = {
{EMPTY, EMPT... |
/*
*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* The contents of this file are provided under the Software License
* Agreement that you accepted before downloading this file.
*
* This source forms part of the Software and can be used for educational,
* training, and demonstration purpos... |
/*
* SecuDE Release 4.1 (GMD)
*/
/********************************************************************
* Copyright (C) 1991, GMD. All rights reserved. *
* *
* *
* ... |
/***************************************************************************
* File request support
* $Id: freq.c,v 1.9 2004/06/13 17:05:46 sisoft Exp $
***************************************************************************/
#include "headers.h"
int freq_ifextrp(slist_t *reqs)
{
FILE *f,*g,*r;
char s[MAX_PAT... |
/*
Program to generate a regular grid of points.
*/
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "logger.h"
#include "version.h"
#include "parsers.h"
/* Print the help message for tessgrd program */
void print_tessgrd_help()
{
printf("Usage: tessgrd [PARAMS] [OPTIONS]\n\n");
printf("Mak... |
/* ###################################################################
** Filename : main.c
** Project : Solindar2
** Processor : MC9S08QE128CLK
** Version : Driver 01.12
** Compiler : CodeWarrior HCS08 C Compiler
** Date/Time : 2019-10-23, 12:27, # CodeGen: 0
** Abs... |
/*
* 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... |
/* codegen.c */
extern void comment(void);
extern void header(void);
extern void DoLibHeader(void);
extern void trailer(void);
extern void outname(const char *sname, char pref);
extern void getmem(SYMBOL *sym);
extern void StoreTOS(char);
extern int getloc(SYMBOL *sym, int off);
extern void putmem(SYMBOL *sym);
extern ... |
/*
* calculator.c
*
* Created on: Sep 21, 2019
* Author: DiaaEldeen
*/
#include "calculator.h"
// A wrapper function for performing the calculations
int64_t eval_ints(char* rawStr) {
int32_t numArr[20];
char signArr[20];
if ( parse_ints(rawStr, numArr, signArr) == -1 )
return -1;
return calcul... |
/*
* Copyright (c) Linaro 2018 Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdint.h>
#include <platform_def.h>
#include <arch.h>
#include <lib/mmio.h>
#include <imx_uart.h>
/* TX/RX FIFO threshold */
#define TX_RX_THRESH 2
struct clk_div_factors {
uin... |
/*
* FreeRTOS Kernel V10.1.0
* Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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, includ... |
/* By <NAME>, <NAME>, <NAME>, <NAME>.
CS 251, Fall 2011
*/
enum VALUE_TYPE{
nullType, tableType, cellType, errorType, booleanType, integerType, floatType, stringType, symbolType, openType, closeType, closureType, envType, primitiveType
};
typedef struct __Environment{
struct __Value* bindings;
struct __Envir... |
// SPDX-License-Identifier: GPL-2.0
/*
* This file is based on code from OCTEON SDK by Cavium Networks.
*
* Copyright (c) 2003-2007 Cavium Networks
*/
#include <linux/kernel.h>
#include <linux/ethtool.h>
#include <linux/phy.h>
#include <linux/ratelimit.h>
#include <linux/of_mdio.h>
#include <generated/utsrelease.h... |
/*******************************************************************************
SPI Driver Functions for Dynamic Enhanced Buffer Driver Tasks Functions
Company:
Microchip Technology Inc.
File Name:
drv_spi_dynamic_ebm_tasks.c
Summary:
SPI driver tasks functions
Description:
The SPI device... |
/* Copyright (c) 2015, DF9DQ
* 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 conditions and the fol... |
/* COPYRIGHT C 1991- <NAME> */
#include <stdio.h>
#include "ad_defs.h"
#include "ad_print.h"
void print_graph(int nocells,
int nonets,
int noparts,
cells_t cells[],
nets_t nets[])
{
printf("\nGRAPH\n");
printf("%d\n%d\n%d\n", nocells, nopar... |
/*
Name: pi.c
Purpose: Computes digits of the physical constant pi.
Author: <NAME> <http://spinning-yarns.org/michael/>
Copyright (C) 2002-2008 <NAME>, All Rights Reserved.
Notes:
Uses Machin's formula, which should be suitable for a few thousand digits.
Permission is hereby granted, free of cha... |
// Spedito ASM Generatior Module
//
// Copyright 2005-2009 <NAME>
//
// 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, version 2, with the following exceptions:
// 1) this software can ... |
/* -*- mode: C; c-file-style: "gnu" -*- */
/* xdgmimeint.c: Internal defines and functions.
*
* More info can be found at http://www.freedesktop.org/standards/
*
* Copyright (C) 2003 Red Hat, Inc.
* Copyright (C) 2003 <NAME> <<EMAIL>>
*
* Licensed under the Academic Free License version 2.0
* Or under the fol... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.