trimdomain.3 (7f3dea244c40159a41ab22da77a434d7c5b5e85a) trimdomain.3 (3dc329d1be00b8b4ba4a45886b6374289daa8ab0)
1.\" Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" $FreeBSD$
26.\"
27.Dd April 7, 1999
28.Os
29.Dt TRIMDOMAIN 3
30.Sh NAME
31.Nm trimdomain
32.Nd "trim the current domain name from a host name"
1.\" Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" $FreeBSD$
26.\"
27.Dd April 7, 1999
28.Os
29.Dt TRIMDOMAIN 3
30.Sh NAME
31.Nm trimdomain
32.Nd "trim the current domain name from a host name"
33.Sh LIBRARY
34.Lb libutil
33.Sh SYNOPSIS
34.Fd #include <sys/types.h>
35.Fd #include <libutil.h>
36.Ft void
37.Fn trimdomain "char *fullhost" "int hostsize"
35.Sh SYNOPSIS
36.Fd #include <sys/types.h>
37.Fd #include <libutil.h>
38.Ft void
39.Fn trimdomain "char *fullhost" "int hostsize"
38.Pp
39Link with
40.Va -lutil
41on the
42.Xr cc 1
43command line.
44.Sh DESCRIPTION
45The function
46.Fn trimdomain
47removes the current domain name from the passed
48.Ar fullhost
49name by writing a
50.Dv NUL
51character over the first period of the passed name. The current domain

--- 35 unchanged lines hidden ---
40.Sh DESCRIPTION
41The function
42.Fn trimdomain
43removes the current domain name from the passed
44.Ar fullhost
45name by writing a
46.Dv NUL
47character over the first period of the passed name. The current domain

--- 35 unchanged lines hidden ---