[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using stpcpy

From: Paul Eggert
Subject: Re: Using stpcpy
Date: Mon, 22 Dec 2014 22:47:34 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Dmitry Antipov wrote:
Can we assume that stpcpy(3) is mature enough to be used in Emacs?
It can help to simplify strcpy/strlen/strcat mess here and there.
(IIUC there is a gnulib module as well).

Yes, stpcpy is mature enough; it's been around for ages in the GNU C library and is not likely to change. That being said, stpcpy isn't universal, so for Emacs to be portable we should add gnulib's stpcpy module.

Something like the attached patch, perhaps? Tested on both GNU/Linux and Solaris 10 (which lacks stpcpy).

Attachment: 0001-Prefer-stpcpy-to-strcat.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]