File: mocks-string.c

package info (click to toggle)
rpma 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,040 kB
  • sloc: ansic: 27,313; sh: 1,805; perl: 1,148; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 306 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2021, Fujitsu */

/*
 * mocks-string.c -- string mocks
 */

#include "cmocka_headers.h"
#include "mocks-string.h"

/*
 * __wrap_strerror -- strerror() mock
 */
char *
__wrap_strerror(int errnum)
{
	check_expected(errnum);

	return mock_type(char *);
}