text stringlengths 3.12k 18.7k |
|---|
/*
* output-graphics.c - Output a graphics file.
*
* Written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Lice... |
/*-
* Copyright (c) 2011-2014 <NAME>
* 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 conditi... |
/* $OpenBSD: ibm525reg.h,v 1.2 2010/08/02 20:55:49 kettenis Exp $ */
/*
* Copyright (c) 2005, <NAME>.
*
* 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 cop... |
/*
*
* Copyright (C) 2008 <NAME> (<EMAIL>) and
* <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 Software Foundation; either version 2, or (at
* your option) any later v... |
/*
* librdkafka - Apache Kafka C library
*
* Copyright (c) 2012-2015, <NAME>
* 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 co... |
//disable compiler warnings:
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
/*
*
*/
#define _CRT_SECURE_NO_WARNINGS
#define LENGTH 3
#define MAXSTRLEN 100
#define COUNT 4
int data[LENGTH]; //some integers
char* words[LENGTH];
void pointers_memaddr_example()
{
int mem = 1;
int *pointer;
pointer =... |
#include "petiga.h"
#include "petigaprobe.h"
#if PETSC_VERSION_LT(3,5,0)
#define KSPSetOperators(ksp,A,B) KSPSetOperators(ksp,A,B,SAME_NONZERO_PATTERN)
#endif
static void Function(PetscReal xyz[3],PetscReal *F)
{
PetscReal x = xyz[0];
PetscReal y = xyz[1];
PetscReal z = xyz[2];
*F = 0.0;
*F += x*x*x;
*F ... |
/*
* derpina/derp.c
*
* Copyleft (C) 2015 <NAME>
*
* Concept of Internet Realy Chat bot.
* Licensed by MIT license. See LICENSE file.
*/
#include "stdinc.h"
#include "send.h"
#include "conf.h"
#include "info.h"
#include "irc.h"
/* Lib includes */
#include "../slog/slog.h"
#include "../sms/magtisun.h"
#defi... |
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <ctype.h>
#include <math.h>
#include "ft.h"
static int width = 0;
cell_pixmap_t *clk = NULL;
time_t clk_lastupdate = 0;
void
init_clock(int w)
{
... |
#include <stdio.h>
#include <string.h>
#include "mmio.h"
#include "hbio.h"
#include "lusolio.h"
/* Utility routines to read matrix files in the Coordinate Text File format*/
MYBOOL ctf_read_A(char *filename, int maxm, int maxn, int maxnz,
int *m, int *n, int *nnzero, int *iA, int *jA, REAL *Aij)
{
... |
#include "pharo.h"
#include <sys/mman.h>
#include <fcntl.h>
#include <signal.h>
#define roundDownToPage(v) ((v)&pageMask)
#define roundUpToPage(v) (((v)+pageSize-1)&pageMask)
char *uxGrowMemoryBy(char *oldLimit, sqInt delta);
char *uxShrinkMemoryBy(char *oldLimit, sqInt delta);
sqInt uxMemoryExtraBytesLeft(sqInt inc... |
/******************************************************************************
*
* Copyright © International Business Machines Corp., 2006, 2008
*
* 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 Sof... |
/*
* Copyright (c) 2012 <NAME> <<EMAIL>>
* All Rights Reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
// prepend "0" as needed resulting in a string of _minimal_ width.
void PrependZeros(char *dest, const char *src, unsigned minimal_width) {
size_t len = strlen(src);
size_t zeros = (len > minimal_width) ? 0 : minimal_width - len;
memset... |
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <assert.h>
#include <glob.h>
#include <errno.h>
enum {
ZZ_ASYNC_FS_OPEN,
ZZ_ASYNC_FS_READ,
ZZ_ASYNC_FS_WRITE,
ZZ_ASYNC_FS_LSEEK,
ZZ_ASYNC_FS_TRUNCATE,
ZZ_ASYNC_FS_CLOSE,
ZZ... |
/**
@file
@ingroup bkfdd
@brief Functions for export BKFDDs into BLIF file.
@author <NAME>
@copyright
Copyright (c) 2019-, Jinan University, Guangzhou, China.
All rights reserved.
======================================================================
All functions are originate from cuddExport.c
@... |
/*
* ryshttpd -- simple filesharing http server.
*
* ryshttpd is copyrighted:
* Copyright (C) 2018 <NAME>. All rights reserved.
*
* ryshttpd is licensed to you under the terms of std. MIT/X11 license:
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associ... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* unescape_json_string
* ====================
* Copyright (C) 2018 Flodila
*
* 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 ... |
/*! Signals - "simplified" version of linux signal.h (with includes) */
#pragma once
#include <types/basic.h>
#include <types/pthread.h>
/* Signals for POSIX "compatibility" (not used as defined!) */
#define SIGHUP 1 /* Hangup (POSIX) */
#define SIGINT 2 /* Interrupt (ANSI) */
#define SIGQUIT 3 /* Quit (POSIX) */
... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/* VOLX by <NAME> */
/* Unix port and cosmetic tty output changes
made by <NAME> 99-03-15 */
/* Modifications for OBJECT file and ALL extraction
made by <NAME> 96-08-20 */
/* Modifications for WORDS.TOK file
made by <NAME> 96-08-20 */
/* This file is under constant development, and still very unstable.. */
#inc... |
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : SCI.C
** Project : SmartCar
** Processor : MC9S12DG128BCPV
** Beantype : AsynchroSerial
** Version : Bean 02.454, Driver 01.19, CPU db... |
/*
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <errno.h>
#include <time.h>
#define BLOCK_SIZE 512
#define NAME_LEN_LIMIT 16 // length limit for name
#define DIRC_LIMIT 16 // max # of items in a directory
#define USER_LIMIT 15 // max # of users
#define FAT_... |
/****************************************************************************
* @file main.c
* @version V1.00
* @brief Demonstrate the System run to power down mode and RTC Alram
* function to Wake up the system
*
* SPDX-License-Identifier: Apache-2.0
* @copyright (C) 2019 Nuvoton Technology Co... |
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Writing of internal program representation to a serialized form
// so that the Go translation of these routines can do the actual
// program layout.
// The ... |
/*
* Acess2 Text Editor
*/
#if !USE_LOCAL
# include <acess/sys.h> // Needed for IOCtl
#endif
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#if USE_LOCAL
# include <sys/ioctl.h>
# include <termios.h>
#else
# include <acess/devices... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Licen... |
///////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT NOTICE
//
// The following open source license statement does not apply to any
// entity in the Exception List published by FMSoft.
//
// For more information, please visit:
//
// https://www.fmsoft.... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <assert.h>
#include <err.h>
#include <string.h>
#include "glean.h"
#include "set.h"
/* Externally-chaining, resizable hash table for a set of unique keys.
* I'm not using a more general-purpose hash table because only storing
* the keys (no associa... |
// Copyright (c) 2013, <NAME>
//
// 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... |
/*
* Copyright (c) 2012-2014 ARM Ltd
* 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 conditi... |
#include "kmer.h"
/* kmer2inx
Args: (1) a pointer to a character string;
the kmer to find the corresponding index of;
might not be null-terminated
(2) length of the kmer
(3) pointer to size_t to put the index
Returns: TRUE if the index was set, FALSE if it could not
be set beca... |
#include <gk.h>
gkFont* font;
gkTextFormat tf;
void CreateOfflinePanel();
void DestroyOfflinePanel();
void CreateUpdatePanel();
void DestroyUpdatePanel();
void CreateDrawPanel();
void DestroyDrawPanel();
void CreateBackgroundPanel();
void DestroyBackgroundPanel();
void CreateForegroundPanel();
void DestroyForegro... |
/******************************************************************************\
* *
* Copyright (c) 2003, The Regents of the University of California *
* See the file COPYRIGHT for a complete copyright notice and license. ... |
/*
Copyright (c) 2015–2018 <NAME> <<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, distr... |
///////////////////////////////////////////////////////////////////////////////
////////////////////////// DESCRIÇÃO DO PROBLEMA ////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/*
* Uma grande rede supermercadista destinou uma parte de suas gôndolas para ... |
/*******************************************************************************
* Copyright 2016-2017 Intel Corporation All Rights Reserved.
*
* The source code, information and material ("Material") contained herein is
* owned by Intel Corporation or its suppliers or licensors, and title to such
* Material rem... |
/*
* Copyright 2016 Information Systems Group, Saarland University
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 o... |
/******************************************************************************************/
/* Author : <NAME> */
/* Version : V01 */
/* Date : 3 / 9 / 2021 ... |
/* $Id$ */
/*
* Copyright (c) 2003-2009 <NAME>
* 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, th... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2013-2014 - <NAME>
* Copyright (C) 2011-2017 - <NAME>
*
* RetroArch 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 Found-
* ation, either version 3 of the... |
/*==========================================================================*/
/* */
/* MODULE: wt8574.c */
/* */
/* U... |
/*
* Copyright (C) 2014, 2015, 2015 Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE... |
/*
* This source code is provided under the Apache 2.0 license and is provided
* AS IS with no warranty or guarantee of fit for purpose. See the project's
* LICENSE.md for details.
* Copyright (C) 2019 Refinitiv. All rights reserved.
*/
/*
* This is the symbol list handler for the rsslVAConsumer application.
... |
/* RTcmix - Copyright (C) 2000 The RTcmix Development Team
See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for
the license to this software and for a DISCLAIMER OF ALL WARRANTIES.
*/
/* Command line score player that lets you trigger up to 9 different scores
from the computer keyboard. They can pla... |
/*
* libevws
*
* Copyright (c) 2013 github.com/crunchyfrog
*
* 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, cop... |
// libmylcd - http://mylcd.sourceforge.net/
// An LCD framebuffer library
// <NAME>
// <EMAIL>
// Copyright (c) 2005-2009 <NAME>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU LIBRARY GENERAL PUBLIC LICENSE
// as published by the Free Software Foundat... |
/*
* Copyright (c) 2011-2012 Research In Motion Limited.
*
* 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 applica... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*
* Copyright 2014 Advanced Micro Devices, Inc.
*
* 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, m... |
//////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2013-2014, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory
//
// Written by <NAME> et al <<EMAIL>>
// LLNL-CODE-645436
// All rights reserved.
//
// This file is part of t... |
/* testFUZZAC() */
/* Rip_Fuzzac() */
/* Depack_Fuzzac() */
#include "globals.h"
#include "extern.h"
int16_t testFUZZAC ( void )
{
PW_Start_Address = PW_i;
/* test finetune */
for ( PW_k=0 ; PW_k<31 ; PW_k++ )
{
if ( in_data[PW_Start_Address+72+PW_k*68] > 0x0F )
{
return BAD;
}
}
/* ... |
/**
******************************************************************************
* @file per_task.c
* @brief Background task / periodic task
* @author Neidermeier
* @version
* @date Dec-2020
******************************************************************************
*/
/**
* \defgroup per_task Per... |
/*
* Copyright © 2012 Intel Corporation
*
* 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, pub... |
/*
*
* The enum - atoms used.
*
* Copyright (c) 2022 <NAME>
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
*/
typedef struct {
const char * name;
unsigned int value;
ERL_NIF_TERM atom;
} osp_atom_t;
o... |
#include "ev3api.h"
#include "app.h"
#include "libcpp-test.h"
#include <t_stddef.h>
#include <t_syslog.h>
#include <string.h>
#include "platform_interface_layer.h"
#include "api_common.h"
#include <math.h>
/**
* Fall length = tan(20) * 1 meter * 2 (2 pices)
* Resolution = Fall length / 208 pixel = 0.0035 meter/p... |
/*C source file for the Check button widget
* This file is part of `TinyWidgets', a widget set for the nano-X GUI which is * a part of the Microwindows project (www.microwindows.org).
* Copyright C 2000
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This library is free software; you can redistri... |
/*
** Copyright 2020 Telenor Digital AS
**
** 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... |
/*
* 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, distribute, sublicense, and/or sell... |
/*
* Author: <NAME>
* Copyright (c) 2018, Private Octopus, Inc.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THIS SOFTWARE ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include "ickP2p.h"
char* wrapperURL = NULL;
char wrapperIP[16];
int wrapperPort = 80;
char wrapperPath[1024];
char* wrapperAuthorization = ... |
//#define _GNU_SOURCE
#include <assert.h>
#include <math.h>
#include <projects.h>
#include <shapefil.h>
#define UV projUV
#define LASTVERT(v,n) ((v) == 0 ? n-2 : v-1)
#define NEXTVERT(v,n) ((v) == n-2 ? 0 : v+1)
/* This is prj2prj, and used for converting ESRI Shapefile from one
project to another. You need to ... |
#include "svmm.h"
#include "defs.h"
#include "memlayout.h"
#include "mmu.h"
#include "param.h"
#define NULL_PROC_ID -1
#define NULL ((void *)0)
svm_t *head = NULL;
svm_t *tail = NULL;
uint count = 0;
void *start_addr = NULL;
void *end_addr = NULL;
static pte_t *pgdirwalk(pde_t *pgdir, const void *va, int alloc) {
... |
/* Copyright (c) <NAME>, 1994. */
/* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h> /* for cos()... |
#include "defs.h"
// put symbol s at index n
void
std_symbol(char *s, int n)
{
struct atom *p;
p = symtab + n;
p->u.printname = strdup(s);
if (p->u.printname == NULL)
malloc_kaput();
}
// symbol lookup, create symbol if not found
struct atom *
usr_symbol(char *s)
{
int i;
struct atom *p;
for (i = 0; i < NS... |
/******************************************************************************
* Filename: throttle.c
* Description: Interfaces with an analog throttle (e.g. a thumb throttle).
******************************************************************************
Copyright (c) 2020 <NAME>
Permission is hereby gr... |
/*
* Copyright (c) 2006, <NAME>
* 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 cond... |
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_wifi.h"
#include "esp_event.h"
#include "esp_log.h"
#include "nvs_flash.h"
// #include "protocol_examples_common.h"
#include "lwip/err.h"
#include "lwip/sockets.h"
#include "lwip/sys.h"
#include "lwip/n... |
// This is an example of a trivial OpenGL program with a pair of GLSL
// shaders. It uses OpenGL 4.1 and [GLFW][] 3. Check out [the GitHub
// project][gh] for background and instructions on how to build and run this
// program.
//
// The annotated code is by [<NAME>][] and based on an original
// example by [<NAME>][].... |
/**
* \file IfxCpu.c
* \brief CPU basic functionality
*
* \version iLLD_1_0_1_11_0
* \copyright Copyright (c) 2019 Infineon Technologies AG. All rights reserved.
*
*
* IMPORTANT NOTICE
*
*
* Use of this file is subject to the terms of use agreed between (i) you or
* the com... |
#include "nlog.h"
/*
** This code does not use garbage collected allocation and free, as it makes
** use of asprintf, which has no analog. Feel free to write one.
*/
static int
inet_socket(const char *servername, const char *port, int *socket_type)
{
int fd, errcode, i, type = -1;
struct addrinfo hints, *res;
const... |
#include "qwirkle-base.h"
void dragBegin( GtkWidget *widget, GdkDragContext *context, gpointer userData )
{
GdkPixbuf *pixbuf;
GtkWidget *image;
image = gtk_button_get_image( GTK_BUTTON( widget ) );
if( gtk_image_get_storage_type( GTK_IMAGE( image ) ) == GTK_IMAGE_PIXBUF ) {
pixbuf = gtk_image_get_pixb... |
/* HTAB = 4 */
/****************************************************************************
* bstdfile.c -- This module implements a buffered interface for the *
* fread(2) standard function that can signal an eof of file condition *
* synchronously with the transmission of the last bytes of a file. *
*-------... |
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2006 Nokia Corporation.
*
* Contact: <NAME> <<EMAIL>>
*
* 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 v... |
// Copyright 2015 <NAME>
// Licensed under the Apache License version 2.0
// You may not use this file except in compliance with this License
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#include <stdio.h>
#include "adc.h"
#include "communication.h"
#include "global.h"
#include... |
/* BSD 2-Clause License
*
* Copyright (c) 2019, <NAME> 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 lis... |
/****************************************************************************
*
* Copyright (c) 2014 Wi-Fi Alliance
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice ap... |
// engler, cs49n: simplistic mpu6500 driver code.
//
// everything is put in here so it's easy to find. when it works,
// seperate it out.
//
// KEY: document why you are doing what you are doing.
// **** put page numbers for any device-specific things you do ***
// **** put page numbers for any device-specific thin... |
#include "../include/user_interface.h"
#include "../include/client.h"
#include <gtk/gtk.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
typedef struct applicationWindow ApplicationWindow;
static void file_select_callback(GtkWidget *widget, gpointer data);
static void app_activate(GtkApplication *app);
s... |
/*
MIT License
Copyright (c) 2000 <NAME>
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, distrib... |
/*
*
* Copyright 2017, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
#include<windows.h>
#include<stdlib.h>
#include<time.h>
void add(); //FUNCTIONS
void list();
void edit(); //GLOBALLY DECLARED FUNCTIONS N VARIABLE
void delete1();
void search();
void setcolor(int ForgC)
{ WORD wColor;
HANDLE hStdOut=GetStdHandle(S... |
/**************************************************************************\
* Module Name: ntsend.h
*
* Copyright (c) 1985 - 1999, Microsoft Corporation
*
* client-side macros for kernel-mode
*
* 03-21-95 JimA Created.
\**************************************************************************/
... |
/* Copyright (c) 2007 Google 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
// File: unix-listeners.c
//
// Description: Utilities for Unix listeners.
//
// Copyright 2015 by Silicon Laboratories. All rights reserved. *80*
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <sched.h>
#include <signal.h>
#include <string.h>
#include <stddef.h>
... |
/*
This example shows how to control servo by position with external position controller.
Servo itself runs in velocity mode. This program can be easily extended to number of devices
making some synchronized movements.
Servo will move to desired position (actual position + TDIST) and back.
*/
#ifndef WIN32
#define ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "include/util.h"
#include "include/room.h"
#include "include/monster.h"
#include "include/map.h"
#include "include/player.h"
#include "include/fight.h"
#include "main.h"
#define GRID_SIZE 5
Room* rooms[GRID_SIZE * GRID_SIZE];
Playe... |
/*
* Copyright (c) 2004, National ICT Australia
*/
/*
* Copyright (c) 2007 Open Kernel Labs, Inc. (Copyright Holder).
* All rights reserved.
*
* 1. Redistribution and use of OKL4 (Software) in source and binary
* forms, with or without modification, are permitted provided that the
* following conditions are met... |
#include <stdlib.h>
#include <Engine/IO.h>
#include <Engine/Asset.h>
#include <Engine/Config.h>
#include <Engine/Resource.h>
#include <Render/Render.h>
static Handle _placeholderTexture;
static struct Sampler *_sceneSampler;
static bool _CreateTextureResource(const char *name, const struct TextureCreateIn... |
/*
* uvc video capture example
*/
#include "FreeRTOS.h"
#include "task.h"
#include "example_media_video_mp4de.h"
#include "mmf_sink_modules/mmf_sink_rtsp2.h"
#include "mmf_source_modules/mmf_source_mp4de.h"
#include "mmf_command.h"
#include "mmf_source.h"
#include "mmf_sink.h"
#define MP4_VIDEO 0
... |
#include "multiset.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "data.h"
#include "data_cleanup.h"
#include "data_internal.h"
xlb_multiset *xlb_multiset_alloc(adlb_data_type elem_type)
{
xlb_multiset *m;
m = malloc(sizeof(*m));
xlb_multiset_init(m, elem_type);
return m;
}
void xlb_... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pclst.h"
/*-------------------------------------------------------------------------
*
* Output the cluster result.
*
*------------------------------------------------------------------------*/
void output(para_t *p)
{
long i, j, k=0;
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libam.h"
/* This is counting on the fact that amitree_t is a complete copy of the fully-validated amtree_t */
#define MAX_ELEMENTS (1024)
#define REPS_MAX (8388608)
// This is needed to actually have the test work when building for production
#def... |
/* Copyright (C) 2015 <NAME> */
/* All rights reserved. */
/* This file is part of phonopy. */
/* 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 cop... |
/*
* morse.c
*
* Created on: Oct 28, 2019
* Author: zoe
*/
#include "morse.h"
#include <msp430.h> // for errorledon and errorledoff - change this according to your needs
/* you need to implement these */
void errorledon() {
P1OUT |= 1;
P6OUT |= 1<<6;
}
void errorledoff() {
P1OUT &= ~1;
P6... |
/*
* parse.c
*
* This file is part of the ttf2pk package.
*
* Copyright 1997-1999 by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h> /* for size_t */
#include <ctype.h>
#include <string.h>
#include "ttf2tfm.h"
#include "errormsg.h"
#inc... |
/* eseScorer.c - Program to score a set of sequences
for different exonic splicing motifs. */
#include "common.h"
#include "dnaseq.h"
#include "fa.h"
#include "obscure.h"
#include "options.h"
#include "linefile.h"
void usage()
/* Print help and quit. */
{
errAbort("eseScorer - Program to score a set of sequences\n"... |
/**
******************************************************************************
* File Name : SPI.c
* Description : This file provides code for the configuration
* of the SPI instances.
******************************************************************************
* @... |
#include <bgbbtj.h>
/*
Walsh Hadamard Transform
*/
void BGBBTJ_JPG_TransWHT_Stride4(int *iblk, int *oblk,
int istride, int ostride)
{
int ib0, ib1, ib2, ib3;
int a0, a1, a2, a3;
int b0, b1, b2, b3;
ib0=iblk[istride*0]; ib1=iblk[istride*1];
ib2=iblk[istride*2]; ib3=iblk[istride*3];
a0=ib0+ib2;
a1=ib1+ib3;
a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.