代码搜索:malloc
找到约 10,000 项符合「malloc」的源代码
代码结果 10,000
www.eeworm.com/read/166734/5473420
c jmemnobs.c
/*
* jmemnobs.c
*
* Copyright (C) 1992-1994, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying READ
www.eeworm.com/read/163821/5509075
makefile
# Makefile for uClibc
#
# Copyright (C) 2002 NEC Corporation
# Copyright (C) 2002 Miles Bader
#
# This program is free software; you can redistribute it and/or modify it under
# the
www.eeworm.com/read/163821/5509090
c memalign.c
/* malloc.c - C standard library routine.
Copyright (c) 1989, 1993 Michael J. Haertel
You may redistribute this library under the terms of the
GNU Library General Public License (version 2 o
www.eeworm.com/read/162614/5517358
c using2.c
// { dg-do compile }
// Copyright 2005 Free Software Foundation
// by Alexandre Oliva
// based on https://bugzilla.redhat.com/beta/show_bug.cgi?id=149098
// Per the ISO C++ 90 St
www.eeworm.com/read/162614/5518531
c pr21584-2.c
extern char *strcpy (char *__restrict __dest, __const char *__restrict __src);
extern char *foo (void);
extern void *malloc(__SIZE_TYPE__) __attribute__((malloc));
char v[100];
void baz()
{
char
www.eeworm.com/read/162614/5522673
c eb32.c
// { dg-do assemble }
class A {
public:
void malloc(unsigned int);
};
void A::malloc(unsigned int) {}
void foo() {
A a;
a.malloc(3); //
www.eeworm.com/read/162614/5529335
c uninit-6.c
/* Spurious uninitialized variable warnings.
This one inspired by java/class.c:build_utf8_ref. */
/* { dg-do compile } */
/* { dg-options "-O -Wuninitialized" } */
#include
struct tr
www.eeworm.com/read/162614/5530818
c pr15443-2.c
/* { dg-do compile } */
struct foo {
int bar;
};
typedef struct foo* bar;
void f () __attribute__ ((__malloc__)); /* { dg-warning "ignored" } */
int g () __attribute__ ((__malloc__)); /* { dg-warni
www.eeworm.com/read/162614/5531428
c 20050527-1.c
/* PR c/21536 */
/* { dg-do run } */
/* { dg-options "-O2 -Wuninitialized" } */
typedef __SIZE_TYPE__ size_t;
extern void *malloc (size_t);
extern void free (void *);
void *
foo (int x, int y)
{
v
www.eeworm.com/read/162614/5540420
c fail11-frag.c
#include
#include
#include
int main ()
{
int i = 10;
char *x = (char *) malloc (i * sizeof (char));
while (i--)
{
++x;
*x = 0;
}
return 0;
}
/* { dg-output "mudfla