text stringlengths 9 948k |
|---|
//
// Star+Skill.h
// MPUIKit
//
// Created by mapeng on 2021/8/14.
//
#import "Star.h"
NS_ASSUME_NONNULL_BEGIN
@interface Star (Skill)
- (void)sing;
@end
NS_ASSUME_NONNULL_END |
/*
unicode_format.h -- implementation of str.format().
*/
/************************************************************************/
/*********** Global data structures and forward declarations *********/
/************************************************************************/
/*
A SubString consists of t... |
/*
* AdioSynthWaveformSine_F32
*
* Created: Chip Audette (OpenAudio) Feb 2017
* Modeled on: AudioSynthWaveformSine from Teensy Audio Library
*
* Purpose: Create sine wave of given amplitude and frequency
*
* License: MIT License. Use at your own risk.
*
*/
#ifndef synth_sine_f32_h_
#define synth_s... |
//
// Created by Pham Phi Long on 09/08/2016.
//
#ifndef PHAM_PHI_LONG_RADIX_TREE_ITERATOR_H
#define PHAM_PHI_LONG_RADIX_TREE_ITERATOR_H
#include "radix_tree_node.h"
namespace phamphilong {
template <typename Key, typename T, typename Split, typename Len>
class radix_tree_iterator {
friend class radi... |
/*
* xmlreader.h
*
* Created on: 05.08.2014
* Author: Ralph
*/
#ifndef XMLREADER_H_
#define XMLREADER_H_
#include <QList>
#include <QMap>
#include <QString>
#include <QVariant>
#include <QXmlStreamReader>
class XmlReader
{
public:
XmlReader();
virtual ~XmlReader();
bool read( QIODevice* devi... |
#ifndef __ADDINNATIVE_H__
#define __ADDINNATIVE_H__
#include "ComponentBase.h"
#include "AddInDefBase.h"
#include "Utils.h"
#include "IMemoryManager.h"
#include "RabbitMQClient.h"
typedef void* VOID_PTR;
///////////////////////////////////////////////////////////////////////////////
// class CAddInNative
class CAddI... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import <F... |
/* -*- linux-c -*-
* APM BIOS driver for Linux
* Copyright 1994-2001 Stephen Rothwell (sfr@canb.auug.org.au)
*
* Initial development of this driver was funded by NEC Australia P/L
* and NEC Corporation
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Gener... |
/*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:16:35 PM Mountain Standard Time
* Operating System: Version 14.2 (Build 18K57)
* Image Source: /System/Library/PrivateFrameworks/CallHisto... |
//
// SentryCrashReportFixer.c
//
// Created by Karl Stenerud on 2016-11-07.
//
// Copyright (c) 2012 Karl Stenerud. 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 Softw... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The TheBurningSavage Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef THEBURNINGSAVAGE_MINER_H
#define THEBURNINGSAVAGE_MINER_H
#incl... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_LOADER_CROSS_ORIGIN_READ_BLOCKING_CHECKER_H_
#define CONTENT_BROWSER_LOADER_CROSS_ORIGIN_READ_BLOCKING_CHECKER_H_
#include "base/... |
/*************************************************************************/
/* visual_server_raster.h */
/*************************************************************************/
/* This file is part of: */
/* ... |
//
// ChannelModel.h
// News
//
// Created by 逗叔 on 15/8/31.
// Copyright (c) 2015年 逗叔. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ChannelModel : NSObject
@property (nonatomic, copy) NSString *tname;
@property (nonatomic, copy) NSString *tid;
+ (NSArray *)channelList;
@end |
#pragma once
#include <vector>
#include "Graphics/GraphicsDevice.h"
#include "Graphics/Buffers.h"
#pragma comment(lib, "dxguid.lib")
class Shader
{
public:
/* Loads vertex & pixels shader from same file */
Shader(std::string path);
/* Loads vertex & pixels shader from separate files */
Shader(std::string vertexSP... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_BLOCKED_DIALOG_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_BLOCKED_D... |
#pragma once
// Name: Hydroneer, Version: 1.7.1
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Script Structs
//-------------------------------------------------... |
//------------------------------------------------------------------------------
// GB_Asaxpy3B_M: hard-coded saxpy3 method for a semiring
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
// SPDX-License-Id... |
/* libsrc/ncconfig.in. Generated automatically from configure.in by autoheader. */
/* Id */
#ifndef _NCCONFIG_H_
#define _NCCONFIG_H_
#include "vtk_netcdf_config.h"
#include "vtk_netcdf_mangle.h"
/* Version number of package */
#define PACKAGE_VERSION "4.1.2"
#ifdef vtkNetCDF_EXPORTS
# define DLL_EXPORT
#endif
/... |
/***************************************************************************
Hana Awase driver by Zsolt Vasvari
edge connector
----------------------------
GND |A| 1| GND
GND |B| 1| 1P "3"
+5V |C| 3| +5V
NC |D| 4| NC
+12V |E| 5| +12V
SPEAKER(+)|F| 6|SPEAKER(... |
//
// TCommonMarco.h
// TagQ
//
// Created by 李浩 on 2017/3/29.
// Copyright © 2017年 Genius. All rights reserved.
//
#ifndef TCommonMarco_h
#define TCommonMarco_h
#define APP_VERSION [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
#define kPathDocument [NSSearchPathForDirectori... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "SlateBasics.h"
#include "SlateExtras.h"
class FShooterStyle
{
public:
static void Initialize();
static void Shutdown();
/** reloads textures used by slate renderer */
static void ReloadTextures();
/** @return The Slate style... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... |
/*
* This header is generated by classdump-dyld 1.0
* on Monday, September 28, 2020 at 5:54:56 PM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/PhotosUIC... |
bool XXX(char * s){
bool flag=true;
int len = strlen(s);
int i,j;
char * a = (char *)malloc(sizeof(char)*len);
for(i=0,j=0;i<len;i++)
{
if((s[i]>='0'&& s[i]<='9') ||(s[i]>='a'&& s[i]<='z')||(s[i]>='A'&& s[i]<='Z'))
{
if(s[i]>='A'&& s[i]<='Z')
{
s[i] =( s[i] | 0x20); //把大写转小写
... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
/////////////////////////////////////////////////////////////////////////////
// Name: wx/cursor.h
// Purpose: wxCursor base header
// Author: Julian Smart
// Modified by:
// Created:
// Copyright: (c) Julian Smart
// RCS-ID: $Id$
// Licence: wxWindows Licence
////////////////////////////////... |
// stdafx.h : 標準のシステム インクルード ファイルのインクルード ファイル、
// または、参照回数が多く、かつあまり変更されない、プロジェクト専用のインクルード ファイル
// を記述します。
//
#pragma once
#include "targetver.h"
#define WIN32_LEAN_AND_MEAN // Windows ヘッダーからほとんど使用されていない部分を除外する
// Windows ヘッダー ファイル
#include <windows.h>
// C ランタイム ヘッダー ファイル
#include <stdlib.h>
#include <... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
* Copyright (c) 2016 Bob Cousins bobcousins42@googlemail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published ... |
/*
* Unit tests for Event Logging functions
*
* Copyright (c) 2009 Paul Vriens
*
* 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.1 of the License, or (at your o... |
#ifndef JEMALLOC_INTERNAL_BITMAP_H
#define JEMALLOC_INTERNAL_BITMAP_H
#include "jemalloc/internal/bit_util.h"
#include "jemalloc/internal/sc.h"
typedef unsigned long bitmap_t;
#define LG_SIZEOF_BITMAP LG_SIZEOF_LONG
/* Maximum bitmap bit count is 2^LG_BITMAP_MAXBITS. */
#if SC_LG_SLAB_MAXREGS > LG_CEIL(SC_NSIZES)
/*... |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Jun 6 2019 20:12:56).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <IDEKit/NSObject-Protocol.h>
@class IDESchemeBuildableReference, IDETest, NSSet, _TtC13IDEFoundation25IDEDeviceAppDataReferenc... |
// Utility functions
#ifndef UTILITIES_H
#define UTILITIES_H
#include "polygon.h"
int findIntersection (const Segment& seg0, const Segment& seg1, Point& ip0, Point& ip1);
/** Signed area of the triangle (p0, p1, p2) */
inline float signedArea (const Point& p0, const Point& p1, const Point& p2)
{
return (p0.x - p2... |
/**
* SeePHSlope.h
*
* Display the tank ID
*/
#pragma once
#include "UIState.h"
class SeePHSlope : public UIState {
public:
SeePHSlope(TankControllerLib* tc) : UIState(tc) {
}
void start();
void loop();
const char* name() {
return "SeePHSlope";
}
const char* prompt() {
return "PH Slope: ... |
//-*****************************************************************************
// Copyright 2015 Christopher Jon Horvath
//
// 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:/... |
#ifndef GUARD_12_2_H
#define GUARD_12_2_H
int ex12_2();
#endif // !GUARD_12_2_H |
/****************************************************************************
* libc/net/lib_inetntoa.c
*
* Copyright (C) 2007-2008, 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are... |
#pragma once
//------------------------------------------------------------------------------
/**
@class Physics::BaseScene
Base class of physics scenes (worlds)
(C) 2013-2016 Individual contributors, see AUTHORS file
*/
#include "core/refcounted.h"
#include "math/matrix44.h"
#include "math/vector.h"... |
//worker processes of the world, unite.
#include <nchan_module.h>
#include <ngx_channel.h>
#include <assert.h>
#include "ipc.h"
#include "groups.h"
#include "store-private.h"
#define DEBUG_LEVEL NGX_LOG_DEBUG
//#define DEBUG_LEVEL NGX_LOG_WARN
#define DBG(fmt, args...) ngx_log_error(DEBUG_LEVEL, ngx_cycle->log, 0, "... |
// Copyright (c) 2015-2019, The Dinastycoin Project
//
// 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 l... |
// -*- C++ -*-
/**
* Code generated by the The ACE ORB (TAO) IDL Compiler v1.8.2
* TAO and the TAO IDL Compiler have been developed by:
* Center for Distributed Object Computing
* Washington University
* St. Louis, MO
* USA
* http://www.cs.wustl.edu/~schmidt/doc-center.html
* and
... |
/**
* Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... |
/******************************************************************************
*
* Module Name: apfiles - File-related functions for acpidump utility
*
*****************************************************************************/
/******************************************************************************
*
... |
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/ImageCapture.framework/ImageCapture
*/
@interface MSCameraDevice : ICCameraDevice {
void * _msCameraProperties;
}
- (void)dealloc;
- (bool)eject;
- (void)enumerateContent;
- (void)finalize;
- (id)initWithVolumePath:(id)arg1 mediaPaths:(id... |
/*
** Copyright 2005-2017 Solarflare Communications Inc.
** 7505 Irvine Center Drive, Irvine, CA 92618, USA
** Copyright 2002-2005 Level 5 Networks Inc.
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of version 2 of the GNU General Public License ... |
template <int First, int Last>
struct static_for
{
template <typename Lambda>
static inline constexpr void apply(Lambda const& f) {
if (First < Last)
{
f(std::integral_constant<int, First>{});
static_for<First + 1, Last>::apply(f);
}
}
};
template <int N>
stru... |
// This is an open source non-commercial project. Dear PVS-Studio, please check
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// VT220/xterm-like terminal emulator.
// Powered by libvterm http://www.leonerd.org.uk/code/libvterm
//
// libvterm is a pure C99 terminal emulation library w... |
/*
File: Search.c
Contains: IndexedSearch and the PBCatSearch compatibility function.
Version: MoreFiles
Copyright: © 1992-2001 by Apple Computer, Inc., all rights reserved.
You may incorporate this sample code into your applications without
restriction, though the sample code has been provided "AS IS" and t... |
/*!
\file main.c
\brief ADC EXTI trigger demo
\version 2019-6-5, V1.0.0, firmware for GD32VF103
*/
/*
Copyright (c) 2019, GigaDevice Semiconductor Inc.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This class keeps track of the currently-active profiles in the runtime.
#ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_
#define CHROME_BROWSER_... |
//
// dmcrchk.h
//
// Copyright (c) 1997-1999 Microsoft Corporation. All rights reserved.
#ifndef DMCRCHK_H
#define DMCRCHK_H
#define DMC_FOUNDICOP (1 << 0)
#define DMC_FOUNDINAM (1 << 1)
#define DMC_LOADNAME (1 << 2)
#include "dmusici.h"
#ifndef CHUNK_ALIGN
#define SIZE_ALIGN sizeof(BYTE *)
#define CHUNK_ALIGN(... |
/*
* @Author: JIANG Yilun
* @Date: 2022-04-04 15:43:38
* @LastEditTime: 2022-04-04 16:36:54
* @LastEditors: JIANG Yilun
* @Description: Exercice1.c
* @FilePath: /UGA_INF/INF203/Language C/semaine 9/Exercice1.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
int main()
{
int ... |
/* GTK - The GIMP Toolkit
*
* Copyright (C) 2003 Sun Microsystems, Inc.
*
* This library 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 Foundation; either
* version 2 of the License, or (at your option) an... |
//
// Copyright 2018 - Present Hyperwallet
//
// 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, publ... |
// Copyright 2020 D-Wave Systems 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 applicab... |
/*
* Copyright © 2009 CNRS
* Copyright © 2009-2018 Inria. All rights reserved.
* Copyright © 2009-2013, 2015 Université Bordeaux
* Copyright © 2009-2014 Cisco Systems, Inc. All rights reserved.
* Copyright © 2015 Intel, Inc. All rights reserved.
* Copyright © 2010 IBM
* See COPYING in top-level directory.
*/... |
/*
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General ... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#pragma once
#include <functional>
#include <vector>
#include "frc/SpeedController.h"
#include "frc/smartdashboard/Sen... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX Core developers
// Copyright (c) 2019 The SpesCoin Core Developers
// Distributed under the MIT software license, see the accompanying
// file ... |
//===-- asan_report.h -------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//
// ZIKTTextWidgetInteractorEventHandler.h
// ZIKTViperDemo
//
// Created by zuik on 2017/7/17.
// Copyright © 2017年 zuik. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol ZIKTTextWidgetInteractorEventHandler <NSObject>
@end |
void strength_test1(int *data)
{
int i = 0;
do {
data[data[2]] = 2;
i = i + 1;
} while (i * 21 < data[1]);
}
void strength_result1(int *data)
{
int i = 0;
do {
data[data[2]] = 2;
i = i + 21;
} while (i < data[1]);
}
void strength_test2(int *data)
{
int k = data[0];
int i = 0;
do {
... |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_COCOA_FIND_PASTEBOARD_H_
#define CHROME_BROWSER_UI_COCOA_FIND_PASTEBOARD_H_
#pragma once
#include "base/string16.h"
#ifdef... |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <nginx.h>
ngx_uint_t ngx_win32_version;
ngx_uint_t ngx_ncpu;
ngx_uint_t ngx_max_wsabufs;
ngx_int_t ngx_max_sockets;
ngx_uint_t ngx_inherited_nonblocking = 1;
ngx_uint_t ngx_tcp_nodelay_and_... |
/*
* Copyright(c) 2019 Netflix, Inc.
* SPDX - License - Identifier: BSD - 2 - Clause - Patent
*/
/*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause Licen... |
/*
* esp32 / esp-idf pwm
*
* Copyright (C) 2019 - 2020 Andy Green <andy@warmcat.com>
*
* 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... |
#ifndef _ZEPHYR_H
#define _ZEPHYR_H
#include <optional>
#include <string>
#include <vector>
#include "forwards.h"
namespace zephyr
{
struct Settings
{
int width { 800 };
int height { 600 };
std::string name;
int monitorIndex { 0 };
};
struct QueueFamilyIndices
{
std::optional<uint32_t> graphicsFamily;... |
// automatically generated by the FlatBuffers compiler, do not modify
#ifndef FLATBUFFERS_GENERATED_VARIANTDEF_LULL_H_
#define FLATBUFFERS_GENERATED_VARIANTDEF_LULL_H_
#include "flatbuffers/flatbuffers.h"
#include "common_generated.h"
namespace lull {
struct DataBool;
struct DataInt;
struct DataFloat;
struct D... |
/******************************************************************************
* Code generated with sympy 0.7.6 *
* *
* See http://www.sympy.org/ for more information. *
... |
/*
* GStreamer AVTP Plugin
* Copyright (C) 2019 Intel Corporation
*
* 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.1 of the License, or (at your option) any lat... |
#pragma once
#ifdef CUDA_FOUND
#define DISPATCH1(Function, Arg1) \
namespace gpu { \
void Function(Arg1); \
} \
namespace cpu... |
#pragma once
#include "config.h"
#include "core/containers/vector.h"
#include "core/memory/temp_allocator.h"
#include "core/network/ip_address.h"
#include "core/network/socket.h"
#include "core/strings/dynamic_string.h"
#include "device/log.h"
namespace crown
{
struct ConsoleLog
{
LogSeverity::Enum severity;
ch... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2017-2021 Broadcom
* All rights reserved.
*/
#include <inttypes.h>
#include <stdbool.h>
#include <unistd.h>
#include <rte_dev.h>
#include <ethdev_driver.h>
#include <rte_malloc.h>
#include <rte_cycles.h>
#include <rte_byteorder.h>
#include "bnxt.h"
#include ... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import <CalendarPersistence/CalManagedChangeRequest.h>
@class NSString;
@interface CalManagedDeleteDropBoxChangeRequest : CalManagedChangeRequest
{
}
+ (id)insertDeleteDropBoxRe... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE124_Buffer_Underwrite__wchar_t_alloca_cpy_32.c
Label Definition File: CWE124_Buffer_Underwrite.stack.label.xml
Template File: sources-sink-32.tmpl.c
*/
/*
* @description
* CWE: 124 Buffer Underwrite
* BadSource: Set data pointer to before the allocated memory buffer
... |
/** @file
Intel I2C library implementation built upon I/O library
Copyright (c) 2013-2015 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _I2C_LIB_H_
#define _I2C_LIB_H_
#include "I2cRegs.h"
/**
The I2cWriteByte() function is a wrapper function for the WriteByte() function.
Prov... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:43:16 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/IMCore.framework/IMCore
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Lim... |
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 14, 2021 at 2:24:29 PM Mountain Standard Time
* Operating System: Version 14.4 (Build 18K802)
* Image Source: /System/Library/Frameworks/Photos.framework/... |
#include <assert.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char* readline();
int main()
{
char* n_endptr;
char* n_str = readline();
int n = strtol(n_str, &n_endptr, 10);
char* list... |
/*****************************************************************************
Copyright (c) 2011, Intel Corp.
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 cod... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_SCRIPT_EXECUTOR_H_
#define COMPONENTS_AUTOFILL_ASSISTANT_BROWSER_SCRIPT_EXECUTOR_H_
#include <deque>
#inclu... |
/**
******************************************************************************
* @file stm8s_tim1.tim1_oc2init.c
* @author MCD Application Team
* @version V2.2.0
* @date 30-September-2014
* @brief This file contains all the functions for the TIM1 peripheral.
*********************************... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WebScrollStateData_h
#define WebScrollStateData_h
#include "WebCommon.h"
#include <deque>
namespace blink {
// WebScrollState data contains th... |
//=--------------------------------------------------------------------------=
// MSScript.h
//=--------------------------------------------------------------------------=
// (C) Copyright 1996 Microsoft Corporation. All Rights Reserved.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KI... |
#ifndef _HANDLER_INFO_H_
#define _HANDLER_INFO_H_
#ifndef WIFI_HOST
#define WIFI_HOST "esp8266fs"
#endif
#ifndef JSON_BUFFER_SIZE
#define JSON_BUFFER_SIZE 1536
#endif
#ifndef _WEBSOCKETSERVERSHORTFS_VERSION_
#define _WEBSOCKETSERVERSHORTFS_VERSION_ "0.0"
#endif
#i... |
// Copyright 2019 The MACE-KIT Authors. 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 ... |
///////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/textentry.h
// Purpose: wxMSW-specific wxTextEntry implementation
// Author: Vadim Zeitlin
// Created: 2007-09-26
// RCS-ID: $Id$
// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
// Licen... |
/*
* Wi-Fi Protected Setup - internal definitions
* Copyright (c) 2008-2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef WPS_I_H
#define WPS_I_H
#include "wps.h"
#include "wps_attr_parse.h"
struct wps_nfc_pw_token;
... |
/*
* Copyright © 2011-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... |
#ifndef LOG4CPLUS_GELF_UDPTRANSPORT_H
#define LOG4CPLUS_GELF_UDPTRANSPORT_H
#include "AbstractTransport.h"
#include <memory>
#include <boost/thread/thread.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/ip/udp.hpp>
namespace log4cplus {
class UdpTransport : public AbstractTransport {
public:
UdpT... |
/**
* \file
*
* Copyright (c) 2015 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* 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 ... |
/*
* FreeSec: libcrypt for NetBSD
*
* Copyright (c) 1994 David Burren
* All rights reserved.
*
* Adapted for FreeBSD-2.0 by Geoffrey M. Rehmet
* this file should now *only* export crypt(), in order to make
* binaries of libcrypt exportable from the USA
*
* Adapted for FreeBSD-4.0 by Mark R V Murray
* this fi... |
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... |
/* Copyright(C) JieLi Technology
* usb audio 1.0
* All right reserved
*
*/
#include "system/includes.h"
#include "usb_config.h"
#include "usb/device/usb_stack.h"
#include "usb/device/uac_audio.h"
#include "app_config.h"
#if TCFG_USB_SLAVE_AUDIO_ENABLE
#define LOG_TAG_CONST USB
#define LOG_TAG "... |
/* vi: set sw=4 ts=4: */
/*
* uniq implementation for busybox
*
* Copyright (C) 2005 Manuel Novoa III <mjn3@codepoet.org>
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
//config:config UNIQ
//config: bool "uniq (4.8 kb)"
//config: default y
//config: help
//config: uniq is used to r... |
/**Header file for the f77-wrapper functions of the ParticleID Class.
*
* @author H. Vogt
* @version May 10, 2004
*/
#include "cfortran.h"
#include "cpointer.h"
// Warning: dont use "_" in function names as this causes two many
// trailing underscores on Linux
PTRTYPE lcpidcreate() ;
int lcpiddelete( PTRTYPE... |
/*
* Copyright (c) 2015 Cisco and/or its affiliates.
* 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 applicabl... |
#define _CFFI_
/* We try to define Py_LIMITED_API before including Python.h.
Mess: we can only define it if Py_DEBUG, Py_TRACE_REFS and
Py_REF_DEBUG are not defined. This is a best-effort approximation:
we can learn about Py_DEBUG from pyconfig.h, but it is unclear if
the same works for the other two mac... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.