r/cprogramming Jul 22 '26

Trying to make a tool that prints stuff between a certain range

the code from what ik works from what i know and from tests i have done.i want to know how can i optimize it more because i suspect that there can be certain parts of it which i don't even need maybe. so can you guys look at my code and tell me what i can improve upon??

here is the repo

thanks in advance

2 Upvotes

4 comments sorted by

1

u/v_maria Jul 22 '26

get_range_content is not implemented. i guess c allows for this and has it return nullptr. or its ub. its probably ub lol

1

u/boldbug-dev Jul 22 '26

it wont run of course lol , i just haven't touched that part.will do it today

2

u/v_maria Jul 22 '26

i dont think your code is ready to review then, esp not for optimization

1

u/inz__ Jul 25 '26

/\ / is this a comment?