Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.misc Subject: Re: Python/C/Pascal ... How To Choose ? Date: 8 Nov 2025 20:29:34 GMT Lines: 30 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net iirI0Y/8QNVE6jnH96aIrQPXgIPHOgQr6Jpf14mTBQM0miHzT0 Cancel-Lock: sha1:LPp4n4ibrX1rDuWmbvaRx3cfiKA= sha256:H2x8AkqSfvqVb/OjGEnJRtB3fIZKboLrQFr94/6/KmU= User-Agent: Pan/0.162 (Pokrosvk) Xref: csiph.com comp.os.linux.misc:77130 On Sat, 8 Nov 2025 02:01:12 -0500, c186282 wrote: > The ffmpeg command line required is long and complicated. Some literal > stuff, some vars. Then I remember that 'C' is a total BASTARD when it > comes to strings. Only if you don't know the language. sprintf() is your friend if strcat() won't do. Consider that sprintf() returns the number of bytes printed. char* ptr = buffer ptr += sprintf(ptr, "sone value %d ", x); ptr += sprintf(ptr, "another value %d ", y); allows you to build whatever you want in buffer. (assuming buffer is valid memory and you're doing some sanity checking. > Note neither 'C' or FP have a straight-up equiv for 'sleep()'. This is > critical to my app. Turbo had something like it ... but it was like a > legacy lib and not sure to be as accurate or versatile as Python > sleep(). man 3 sleep man 3 usleep man 2 nanosleep What do you think CPython is doing?