G
G G
i'm not asking why they did this in the sense of the actually working program.
just for reference:
http://freshbsd.org/commit/openbsd/...f=lib/libssl/src/crypto/engine/hw_cryptodev.c
i'm asking more or less, what would be the thought that would cause the choice of doing, setting, a const void pointer.
i don't know if i'm saying this right ( writing ) but...
i need a pointer to a location in memory, that will not change, in which the type of that object/data, i'm going to point to, or in this case assign to, i'm not sure how that object/data is typed. ??
sorry about that.
rephrase: ( on the thought )
so. i have a location in memory which i will place this data.
i want this location to always be the same place.
the data being place there, i'm not sure of its type, or not sure how the system handles the type.
so i then choose:
const void *pointer_to_location_that_will_not_change = data_that_i_want_at_that_location;
would that be the thought? and could you give an example of why one would do that.
thanks,
g.
just for reference:
http://freshbsd.org/commit/openbsd/...f=lib/libssl/src/crypto/engine/hw_cryptodev.c
i'm asking more or less, what would be the thought that would cause the choice of doing, setting, a const void pointer.
i don't know if i'm saying this right ( writing ) but...
i need a pointer to a location in memory, that will not change, in which the type of that object/data, i'm going to point to, or in this case assign to, i'm not sure how that object/data is typed. ??
sorry about that.
rephrase: ( on the thought )
so. i have a location in memory which i will place this data.
i want this location to always be the same place.
the data being place there, i'm not sure of its type, or not sure how the system handles the type.
so i then choose:
const void *pointer_to_location_that_will_not_change = data_that_i_want_at_that_location;
would that be the thought? and could you give an example of why one would do that.
thanks,
g.