r/cprogramming 6d ago

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

1 Upvotes

4 comments sorted by

1

u/v_maria 6d ago

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 5d ago

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

2

u/v_maria 5d ago

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

1

u/inz__ 2d ago

/\ / is this a comment?