h_memset.c (272458) | h_memset.c (274066) |
---|---|
1/* $NetBSD: h_memset.c,v 1.1 2010/12/27 02:04:19 pgoyette Exp $ */ 2 3/* 4 * Copyright (c) 2008 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 27 unchanged lines hidden (view full) --- 36#include <stdlib.h> 37 38int 39main(int argc, char *argv[]) 40{ 41 char b[10]; 42 size_t len = atoi(argv[1]); 43 (void)memset(b, 0, len); | 1/* $NetBSD: h_memset.c,v 1.1 2010/12/27 02:04:19 pgoyette Exp $ */ 2 3/* 4 * Copyright (c) 2008 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 27 unchanged lines hidden (view full) --- 36#include <stdlib.h> 37 38int 39main(int argc, char *argv[]) 40{ 41 char b[10]; 42 size_t len = atoi(argv[1]); 43 (void)memset(b, 0, len); |
44#ifdef __FreeBSD__ 45 return b[0]; /* keeps optimizer from zapping the call to memset() */ 46#else |
|
44 return 0; | 47 return 0; |
48#endif |
|
45} | 49} |