On Tue, Nov 12, 2024 at 10:08:18AM +0000, Corey wrote:
> Hello
> 
> Do you know in C language what's the better way to get the info like the 
> output by lsb_release?
> 
> $ lsb_release -cd
> Description:  Ubuntu 22.04.3 LTS
> Codename:     jammy
> 
> 
> i know there is system call. but is there a native way?

I don't think there is a special system call for that. Have you had a
look at the command itself? It is a shell script, and looks pretty
pedestrian to me (at first sight, granted).

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature

Reply via email to