text
stringlengths
3.08k
10.5k
/* The MIT License (MIT) * * Copyright (c) 2021 <NAME> * * Software repository: MoonODE, https://github.com/stetre/moonode * * 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 re...
/* * MIT License * * Copyright (c) 2021 Newracom, 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, m...
/* * libplayerc : a Player client library * Copyright (C) <NAME> 2002-2003 * * 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 option) ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file tim.c * @brief This file provides code for the configuration * of the TIM instances. ****************************************************************************** **********...
/* * wwdg.c * * author: <NAME> * description: * demonstrates the operation of window watchdog timer * sets up the wwdg to around 24 ms max * and fails to update it at some point to show the * reset operation * * setup: * four on-board LEDs */ #include "stm32f4xx.h" #include "system_stm32f4xx....
/* PMSIS includes. */ #include "pmsis.h" /* Variables used. */ #define ALARM_REPEAT_LOOP ( 3 ) static struct pi_device rtc; static volatile uint32_t g_flag = 0; void alarm_irq_handler(void *arg) { printf("RTC Alarm ..... %x\n", *((uint32_t *) arg)); g_flag++; } void test_rtc_alarm(void) { printf("En...
#include <stdio.h> #include <stdlib.h> #include <string.h> struct Node{ struct Node *lchild; int data; struct Node *rchild; }*root=NULL; // Insertion ---------------------------------------> void Insert(int key){ struct Node *t=root; struct Node *r=NULL,*p; if(root==NULL){ p=(struct N...
#include "h/compiler.h" #include "h/opcodes.h" #include "h/linker.h" typedef string (*compileFUN)(context*, opc*, u); string compOP(context* c, opc* op, u f) { string res = {0}; catCptr(&res, ".addr"); concat(&res, utos(c->addr++)); catCptr(&res, ":\n"); if (OPS[op->op].flags & FIMMEDIATE) ...
/* Example application that renders the given (UTF-8 or ASCII) string into * a BMP image. */ #include <mcufont.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include "write_bmp.h" /*************************************** * Parsing of the command line options * **************************************...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "scanner.h" static int test(const char *name) { int err; struct scanner *scanner = NULL; struct scanner_caps caps; printf("Getting scanner '%s'...\n", name); scanner = scanner_get(name); assert(scanner);...
/** * Syspro Project 3 * Written By <NAME> sdi1800119 **/ #include "IPC.h" #include "Config.h" // Fifo I/O routines // Protocol: // msg = header|body // header = opcode|size of message. (opcode: 1byte, size of msg: 10bytes) // routine to create the header and attach it to the msg static void set_header(char *msg,...
/** * This version is stamped on May 10, 2016 * * Contact: * <NAME> <pouchet.ohio-state.edu> * <NAME> <tomofumi.yuki.fr> * * Web address: http://polybench.sourceforge.net */ /* fdtd-2d.c: this file is part of PolyBench/C */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <...
/* tr.c */ /* * Tiled Rendering library * * <NAME> * April 1997 */ #include <assert.h> #include <math.h> #include <stdlib.h> #include "tr.h" struct _TRctx { GLint ImageWidth, ImageHeight; GLubyte *Image; GLint TileWidth, TileHeight; GLboolean Perspective; GLdouble Left; GLdouble Right; ...
/* * SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <stdlib.h> #include <string.h> #include <sys/cdefs.h> #include "esp_log.h" #include "esp_check.h" #include "driver/rmt_tx.h" #include "led_strip.h" #include "led_strip_interface.h" #include...
/******************************************************************* Simple program to check LCD functionality on MicroZed based MZ_APO board designed by <NAME> at PiKRON mzapo_lcdtest.c - main and only file (C) Copyright 2004 - 2017 by <NAME> e-mail: <EMAIL> homepage: http://cmp.felk.cvut.cz/~p...
/*- * Copyright (c) 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> at Krystal Technologies. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the...
/* Copyright (c) 2017, <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 conditions and the...
#include "uart.h" tUART _uart[8] = { {SYSCTL_PERIPH_UART0, UART0_BASE, PA1, PA0, GPIO_PA1_U0TX, GPIO_PA0_U0RX, INT_UART0, 0, {0,0}, false}, {SYSCTL_PERIPH_UART1, UART1_BASE, PB1, PB0, GPIO_PB1_U1TX, GPIO_PB0_U1RX, INT_UART1, 0, {0,0}, false}, {SYSCTL_PERIPH_UART2, UART2_BASE, PD7, PD6, GPIO_PD7_U2TX, GPIO...
// DISTRIBUTION STATEMENT A. Approved for public release. Distribution is unlimited. // // This material is based upon work supported by the Department of the Air Force under Air Force Contract No. FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations expressed in this material are those of the autho...
/* * Copyright (c) 1986 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * * @(#)if_imp.h 1.1 (2.10BSD Berkeley) 12/1/86 */ /* * Structure of IMP 1822 long leader. */ struct control_leader { u_char...
/* Copyright (C) 1995 Aladdin Enterprises. All rights reserved. This file is part of Aladdin Ghostscript. Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or distributor accepts any responsibility for the consequences of using it, or for whether it serves any particular purpose...
/* * The libmalelf is an evil library that could be used for good! It was * developed with the intent to assist in the process of infecting * binaries and provide a safe way to analyze malwares. * * Evil using this library is the responsibility of the programmer. * * Licensed under the Apache License, Version 2....
/* * gadgetd-daemon.c * Copyright(c) 2012-2014 Samsung Electronics Co., Ltd. * * 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...
/* * Copyright (c) 2018, 2019 <NAME> <<EMAIL>> * * 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. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR...
#include <stdio.h> #include <math.h> int idProceso, pagina, i, j; int memoria[16], areaLibre[5][8]; int apMemoria, dirAreaLibre, dirMemoria, movAreaLibre, posMemoria; //Funcion para determinar el tamanio del bloque int tamAreaLibre(int posicion){ int size = pow(2, posicion); return size; } //Muestra la situacion a...
//------------------------------------------------------------------- // // TANKS TO: // ---------------------------------------------- // // 01: God the creator of the heavens and the earth in the name of Jesus Christ. // // 02 - <NAME>: www.bellard.org // // ----------------------------------------------...
#ifndef _DEFINES_H #define _DEFINES_H /* Compiler macros common to all targets in this application */ #ifdef RANDOM #define SITERAND /* Use site-based random number generators */ #endif #define JACOBI_TOL 1.110223e-16 #define GAUGE_FIX_TOL 1.0e-7 /* For gauge fixing */ #define MAX_SPECTRUM_REQUEST 512 #define MAX_M...
/* * rtgauge - X11 live gauge view from standard input data * Copyright (c) 2020 <NAME> <<EMAIL>> * * 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. ...
//File: intialize.c //Location: ~/manuprobe/src/tags #include <stdio.h> #include <stdlib.h> #include <string.h> #include "tags.h" #include <sys/types.h> #include <sys/stat.h> /* make space for the external variables */ //not extern anymore char *tags_file = NULL; entry *tags_tbl = NULL; int tags_tbl_len = ...
/* * LDAP Utilities * Copyright (C) 2012, 2019 <NAME> <<EMAIL>>. * * 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...
// SPDX-License-Identifier: GPL-2.0+ /* * Test module for the BuilderBot AVR multifunction core driver. * * Copyright (C) 2018 <NAME> */ #include <linux/err.h> #include <linux/mutex.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/regulator/driver.h> #include <linux/gpio.h> #include...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
/* vim:ts=4:sw=4:expandtab * (No tabs, indent level is 4 spaces) */ /***************************************************************************** * File: fm_api_pkt_rx.c * Creation Date: July 2, 2007 * Description: Packet Reception Thread. * * Copyright (c) 2005 - 2013, Intel Corporation * * ...
#include "simple_logger.h" #include "object.h" #include "player.h" #include "camera.h" void pickup_update(Entity* self); void container_hurt(Entity* self, int damage); void explosive_hurt(Entity* self, int damage); void pickup_set_hurtbox(Entity* self); void pickup_die(Entity* self); Entity* object_spawn(Vector2D pos...
/************************************************************************** * Benchmarking/testing suite for MSR ECClib * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use these files except in compliance with t...
/* $Id: hw_irman.c,v 5.4 2001/01/21 12:54:42 columbus Exp $ */ /**************************************************************************** ** hw_irman.c ********************************************************** **************************************************************************** * * routines f...
/* * cdsl_hashtree.c * * Created on: Apr 8, 2016 * Author: innocentevil */ #include "cdsl_hash.h" #include "cdsl_hashtree.h" #include "cdsl_rbtree.h" #include "cdsl_slist.h" #define REPLACER_ARG_INIT \ { \ 0, \ } struct replacer_arg { const char *key_str; hashNode...
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <unistd.h> #include <wayland-client.h> #include <wayland-client-protocol.h> #include <linux/input-event-codes.h> #include "cat.h" #include "shm.h" #include "xdg-shell-client-protocol.h" static const int widt...
/********************************************************/ /* */ /* init.c - scioto openshmem initialization */ /* (c) 2021 see COPYRIGHT in top-level */ /* */ /************************...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
/* * tc.h * TC - Timer Counter * This API is used to control the three independent hardware timers. * * Author: <NAME>, <NAME> * Date: 20 Oktober 2014 */ #include "tc.h" // TODO: make macro mask function, works for now but mask is better void tc_conf_channel(tc_channel_settings_t* set, tc_reg_t *tc, uint32_t c...
#include <stdlib.h> #include <sys/select.h> #include <stdio.h> #include <lcthw/ringbuffer.h> #include <lcthw/dbg.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/uio.h> #include <arpa/inet.h> #include <netdb.h> #include <unistd.h> #include <fcntl.h> #include "net.h" struct tagbstring NL = bsStatic("\n")...
/* (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>>, <...
/* * * Copyright (c) 2017 <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, me...
#include "Rhino_standalone.h" #include "Board.h" #include "tmc/ic/TMC5130/TMC5130_Register.h" static uint32_t getInt(); static void set(); static void reset(); static void setConfig(TMCRhinoTypeStandAloneConfigDef *config); static void getConfig(TMCRhinoTypeStandAloneConfigDef *config); static void setPins(...
/* * Copyright (c) 1991 <NAME> * * Disclaimer: No guarantees of performance accompany this software, * nor is any responsibility assumed on the part of the authors. All the * software has been tested extensively and every effort has been made to * insure its reliability. */ /* * fourtr.c - Fourier transform ...
/* * Copyright (c) 2008-2010 <NAME> and the contributors. 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 ...
// Copyright (c) 2014-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 copyright // notice, this list of con...
/* * --------------------------------------------------------------------- * Author: <NAME> * Dept. of Radio Electronics, Brno Univ. of Technology * Created: 2018-10-16 * Last update: 2019-10-25 * Platform: ATmega328P, 16 MHz, AVR 8-bit Toolchain 3.6.2 * ---------------------------------...
#include <pebble.h> #include "tasklists.h" #include "comm.h" #include "tasks.h" #include "statusbar.h" #include "misc.h" static Window *wndTasklists; static MenuLayer *mlTasklists; static int tl_count = -1; // how many items were loaded ATM static int tl_max_count = -1; // how many items we are expecting (i.e. buffer...
/* * Copyright (C), 2000-2007 by the monit project group. * All Rights Reserved. * * 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, or * (at your option) a...
/***************Differential Evolution Algorithm*************************/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <math.h> #define D 10 // Number of variables #define NP 50 // Number of Population #define Iter 300 // Maximum number of iterations struct DE { d...
/* ----------------------------------------------------- mathe_funcs.c Versuche und Loesungen fuer Mathefunktionen OHNE Bibliothek < math.h > Hardware : STM32F030F4P6 N5510 Display IDE : keine (Editor / make) Library : libopencm3 Toolchain : arm...
/* * Copyright (c) 2019 <NAME> <<EMAIL>> * Copyright (c) 2014-2015 <NAME> <<EMAIL>> * * Distributed under the terms of the MIT license. * (See LICENSE.MIT or http://opensource.org/licenses/MIT) */ #include <stdlib.h> #include <sys/types.h> #include <errno.h> #include "dynarray.h" #define x_free(_ptr) \ do ...
/* vim: set sw=4 ts=4 sts=4 et : */ /********************************************************************\ * 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 * * ...
/* * Copyright 2018 <NAME> IW0HDV <<EMAIL>> * * This file is part of AirSpyHF+ (based on HackRF project). * * Compile with: * * gcc -Wall airspyhf_gpio.c -lairspyhf -o airspyhf_gpio -lm * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public ...
#include "axp202.h" #include "esp_log.h" #include <stdlib.h> #include "esp_err.h" #include "helpers.h" static const char* TAG = "axp202"; static esp_err_t register_read(uint8_t reg, uint8_t *result) { esp_err_t ret = ESP_OK; ret = i2c_master_read_slave_reg(AXP_I2C_PORT, AXP202_ADDR, reg, result, 1); return re...
#include "libmyc.h" #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/time.h> #include <unistd.h> #include <signal.h> #define EXIT_SIGNALED 109 #define EXIT_THISPROG 110 #define EXIT_EXECVP 3 static unsigned int numeric_status = 0; static int my_exit (int ret) { if (ve...
/*- * Copyright (c) 2016 UPLEX Nils Goroll Systemoptimierung * Copyright (c) 2016 Otto Gmbh & Co KG * All rights reserved. * Use only with permission * * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
/* * 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. * * This library is distributed in the hope that it...
#include <glib.h> #include "glib-extras.h" #include "shared.h" gboolean envs_sourced() { gboolean sourced; gchar* shell; shell = get_shell(); sourced = FALSE; if (is_sourced(g_strconcat("[$]HOME\/\.", shell, "_envs", NULL))) { sourced = TRUE; } if (is_sourced(g_strconcat("~\/\.", shell, "_envs", NULL...
/* A Bison parser, made by GNU Bison 2.4.2. */ /* Skeleton interface for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General P...
#include <powerport_page.h> #include <avr/eeprom.h> #include <avr/io.h> #include <avr/wdt.h> #include <keys.h> #include <string.h> #include <stdio.h> #include <lcd.h> #include <lcdctrl.h> #include <eds.h> #include <eds-structs.h> #include <canix/rtc.h> #include <canix/tools.h> #include <hcan_multicast.h> #include <hca...
/* Imagine uma fila de pessoas esperando para serem atendidas, com prioridade para pessoas idosas (acima de 60 anos). Assim, as pessoas se dividem em duas filas distintas, uma para pessoas idosas e outra para não idosas. Sempre que houver disponibilidade para uma nova pessoa ser atendida, uma pessoa deve ser removida ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <assert.h> #include "core_allvars.h" #include "core_proto.h" void starformation_and_feedback(int p, int centralgal, double time, double dt, int halonr, int step) { double reff, tdyn, strdot, stars, reheated_mas...
/*** * Excerpted from "Test-Driven Development for Embedded C", * published by The Pragmatic Bookshelf. * Copyrights apply to this code. It may not be used to create training material, * courses, books, articles, and the like. Contact us if you are in doubt. * We make no guarantees that this code is fit for any p...
/** * @brief Symbol table using hashing. * * @file symbol.c * @author <NAME>, <NAME> & <NAME> * @date 2018-03-09 */ #include <stddef.h> #include <stdio.h> #include <string.h> #include "symbol.h" #include "memory.h" /** * @brief Computes the hash function as seen below. * * @param str * @return int */ i...
#pragma once #include <avr/io.h> #include <avr/pgmspace.h> // embedded AVR ISP for modchip (ATTINY85) // Attiny external setup: // FX chip select pin must inactive (pulled up) // ISP reset pin (connected to Arduboy reset pin) #define ISP_RESET_PORT PORTB #define ISP_RESET_DDR DDRB #define ISP_RESET_BIT ...
/* * Copyright (C) 2008 The Android Open Source Project * * 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 ap...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <errno.h> #include "forever.h" #include "parse_args.h" #include "process.h" static void child_restart(uv_timer_t *handle); static void child_close_cb(uv_handle_t* uv_process); static void child_exit_cb(uv_process_t *uv_process, in...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /* */ /*---------------------------------------------------------------------...
static char help[] = "A structured-grid Poisson solver using DMDA+KSP.\n\n"; #include <petsc.h> extern PetscErrorCode formMatrix(DM, Mat); extern PetscErrorCode formExact(DM, Vec); extern PetscErrorCode formRHS(DM, Vec); //STARTMAIN int main(int argc,char **args) { PetscErrorCode ierr; DM da; ...
/******************************************************************************* * @brief Parsing of CAN messages into VWTP2.0 protocol ****************************************************************************** * @attention ****************************************************************************** */ ...
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2017 Cavium, Inc */ #include <stdio.h> #include <unistd.h> #include <signal.h> #include <rte_atomic.h> #include <rte_debug.h> #include <rte_eal.h> #include <rte_eventdev.h> #include "evt_options.h" #include "evt_test.h" struct evt_options opt; struct evt_tes...
/** ****************************************************************************** * File Name : TIM.c * Description : This file provides code for the configuration * of the TIM instances. ****************************************************************************** ...
/* ================================================================================================#= CMSIS Clock The purpose of this module is to satisfy a small number of clock-related dependencies that are provided by standard CMSIS code. It is common to find example code and templates out in the STM32 ecosystem t...
#include "../compiler/ibscommon.h" #include "CuTest.h" #include "../compiler/smmparser.h" #include "../compiler/smmtypeinference.h" #include "../compiler/smmsempass.h" #include "smmastwritter.h" #include "smmastreader.h" #include "smmastmatcher.h" #include <string.h> #include <stdlib.h> static int sampleNo = 1; stati...
// Copyright 2014 <NAME> // // 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 in...
/* ------------------------------------------------------------------------ $Id$ Copyright (c) 2003-2013 <NAME> <<EMAIL>> Program to test the HL7 lexer. ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ ...
/************************************************************************* * Cboy, a Game Boy emulator * Copyright (C) 2012 jkbenaim * * 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 Foundat...
/*++ /* NAME /* postconf_lookup 3 /* SUMMARY /* parameter lookup routines /* SYNOPSIS /* #include <postconf.h> /* /* const char *pcf_lookup_parameter_value(mode, name, local_scope, node) /* int mode; /* const char *name; /* PCF_MASTER_ENT *local_scope; /* PCF_PARAM_NODE *node; /* /* char *pcf_expand_parameter_value(...
/* * Utility functions for tests that use subprocesses. * * Provides utility functions for subprocess manipulation. Specifically, * provides a function, run_setup, which runs a command and bails if it fails, * using its error message as the bail output, and is_function_output, which * runs a function in a subpro...
/* * CS 261 Data Structures * Assignment 6 * Name: <NAME> * Date: Jun. 4, 2017 * Description: Extra credit: Spell Checker program - spellChecker.c file */ #include "hashMap.h" #include <assert.h> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /** * Calculates the Levenshtein Distance bet...
//+--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1992 - 1995. // // File: extag.c // // Contents: // // Classes: // // Functions: // // History: 6-17-96 RichardW Created // //----------------...
#include "graph.h" #include "path.h" #include "stack.h" #include "variable.h" #include "vertices.h" #include <inttypes.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #define OPTIONS "hvui:o:" #define BLOCK 4096 int recursions = 0; bool pat...
/* UCF EGN 3211 FALL 2018 Prof. <NAME> *** Homework 5A *** by <NAME> */ #include <stdio.h> #define LNGSTWRD 10 #define ALPHABET 26 /***FUNCTIONS PROTOTYPE***/ void makeLower(const char * srcPtr, char *targPtr); void strBblSort(int arrSize, int arr[]); void wrdLgthCnt(int lngth, const char *srcPtr, int ...
#include "HashMap.h" #include "ObjectPool.h" #include "string.h" #include "stddef.h" #include "stdio.h" /******************************************************************* * Notes: * - Hash Map entries depends on external buffers to store strings * *****************************************************************...
/* * The MIT License (MIT) * * Copyright (c) 2018 <NAME> (github.com/kanflo) * * 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 rig...
/***************************************************************************** * decoder.c ***************************************************************************** * Copyright (C) 2017 VLC authors and VideoLAN * * Authors: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or mo...
/* ESTRUTURAS DE DADOS - 2017/01 Univesidade de Brasília - UNB Aluno: <NAME> Matricula: 16/0121256 Github: @Gabrielmormar Descrição: Agenda Eletrônica usando lista encadeada em C */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> //estrutura da agenda struct agenda{ char nome[50];...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* cub3d.c :+: :+: :+: ...
#define S_ISDIR(m) (((m) & S_IFDIR) == S_IFDIR) #define S_ISREG(m) (((m) & S_IFREG) == S_IFREG) #define S_IRUSR (_S_IREAD | _S_IWRITE) #define S_IWUSR (_S_IREAD | _S_IWRITE) #define mode_t int #define ssize_t intptr_t #define SSIZE_MAX INTPTR_MAX #if _MSC_VER <= 1900 #define snprintf _snprintf #endif #define strcas...
/************************************************************************** libtbm Copyright 2012 - 2016 Samsung Electronics co., Ltd. All Rights Reserved. Contact: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a...
/* $Id: preconv.c,v 1.17 2018/12/13 11:55:47 schwarze Exp $ */ /* * Copyright (c) 2011 <NAME> <<EMAIL>> * Copyright (c) 2014 <NAME> <<EMAIL>> * * 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 th...
/* ********************************************************** * Copyright (c) 2003-2008 VMware, Inc. All rights reserved. * **********************************************************/ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
/** * * \file dque_create.c * \name dque_create * \author <NAME> * \date 07/11/2019 * \brief Create an empty circular doubly-linked list. * \version * Version Date Author Comment * 1.0 07/11/2019 D.Anderson original * * create( * dque_qheadp *queuep, poi...
/* Copyright (c) 2002-2005 <NAME>. * * Redistribution and use in source forms, with and without modification, * are permitted provided that this entire comment appears intact. * * Redistribution in binary form may occur without any restrictions. * * This software is provided ``AS IS'' without any warranties of a...
/* Menus * * There are several widgets involved in displaying menus. The * GtkMenuBar widget is a menu bar, which normally appears horizontally * at the top of an application, but can also be layed out vertically. * The GtkMenu widget is the actual menu that pops up. Both GtkMenuBar * and GtkMenu are subclasses o...
/* * (C) Copyright 2011 * <NAME>, National Instruments, <EMAIL> * * (C) Copyright 2000 * <NAME>, DENX Software Engineering, <EMAIL>. * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <command.h> #include <u-boot/md5.h> #include <asm/io.h> /* * Store the resulting sum to an address or vari...
/********************************************************************* * Copyright 2018, UCAR/Unidata * See netcdf/COPYRIGHT file for copying and redistribution conditions. *********************************************************************/ #include "dapincludes.h" #include "dapodom.h" /********************...